From: simonpj@microsoft.com Date: Tue, 2 Sep 2008 10:30:43 +0000 (+0000) Subject: Cope with recent versions of Perl that lack the $* feature X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=ead14fa4cfd532568c1366a577e9579b0b69ac96 Cope with recent versions of Perl that lack the $* feature --- diff --git a/utils/runstdtest/runstdtest.prl b/utils/runstdtest/runstdtest.prl index 385a9fb..ae1822b 100644 --- a/utils/runstdtest/runstdtest.prl +++ b/utils/runstdtest/runstdtest.prl @@ -198,9 +198,10 @@ if ($PostScript ne '') { local($to_do); $PostScriptLines = `cat $PostScript`; $PostScriptLines =~ s/\r//g; - $* = 1; - $PostScriptLines =~ s#\$o1#$TmpPrefix/runtest$$.1#g; - $PostScriptLines =~ s#\$o2#$TmpPrefix/runtest$$.2#g; + $PostScriptLines =~ s#\$o1#$TmpPrefix/runtest$$.1#gm; + $PostScriptLines =~ s#\$o2#$TmpPrefix/runtest$$.2#gm; +# The postfix 'm' deals with recent versions of +# Perl that removed the $* feature } else { $PostScriptLines = ''; }