[l2h] Ghostscript version tweak to config.pl

Marek Rouchal DAT CAD HW Tel 25849 Marek Rouchal DAT CAD HW Tel 25849 <marek.rouchal@hl.siemens.de>
Fri, 21 Jul 2000 09:10:28 +0200 (MET DST)


On Thu, 20 Jul 2000, Ross Moore wrote:

RM>But that isn't the full fix.
RM>Surely it is sufficient to match the string as follows:
RM>
RM> if(/Ghostscript\s*(?:Version|BETA RELEASE|TESTER RELEASE|)\s*(\d+[.]?\d*)/i) {
RM>#               match the empty string this way ---------^^ 
RM>        $gs_version = $2;
RM>#                      ^------ version number is in $2,  not $1

Wrong! Note the (?: - this will suppress creation of $! for this
brace. The version is in $1.
Beta8 has the full fix, which will work with 6.x, too.

HTH,

Marek