On 10 January 2012 20:02, Andy Polyakov via RT <[email protected]> wrote:
> It must be "perl" thing, rather than "Solaris". This is strange, because
> I test with rather old perl version, 5.003 and it's not a problem.
> What's your 'perl -v'? But most interesting question why just
> aes-sparcv9.pl? Other assembler scripts also have similar expression,
> without '' and some are even more complex... Can you try to remove 'e'
> instead? I.e. make it $code =~ s/fmovs.*$//gm;

I did say I was an idiot, right? :) It's 5 years since I did any perl
in anger (php and C is paying the bills). I think my semi-conscious
brain assumed that the .* was being expanded somehow and that quoting
it would stop that (as if it were a call to sed in a script) - of
course all it does is stop the regex working altogether. Duh.

You are correct: /gm works much better.

Minimum test:
# perl -e '$a="hello\nworld\n";$a=~s/llo.*$//emg;print $a'
hehello
world

world
#

Perl version is 5.8.0, but I have a linux box also with 5.8.0 that has
no problem with this test.

I guess it's definitely a buggy perl (obviously being confused by
being asked to eval ""), but the /e is completely pointless anyway.

Geoff


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to