At 09:39 PM 4/7/00 +0200, Gisle Aas wrote:
>The URI module have problems because of the following behaviour
>of $1 in subroutine argument lists (@_):
>
>-----------------------------------------------------
>#!/usr/bin/perl -w
>
>"foobar" =~ /(o+)/;
>
>foo($1);    # prints "a"
>foo("$1");  # print "oo"
>
>sub foo
>{
>     "foobar" =~ /(a+)/;
>     print "@_\n";
>}
>__END__
>------------------------------------------------------
>
>I get the same result with perl5.004, perl5.005 and perl5.6.0.
>I assume this is a perl bug.  Is it easily fixable?

This looks related to something I reported in January (see 
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-01/msg00686.html 
) and Ilya explained the reason in 
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-01/msg00714.html 
.  No-one suggested it needed fixing though.


--
Peter Scott
Pacific Systems Design Technologies

Reply via email to