develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #20682] [fix] @- array not visible in s///

Thread Previous | Thread Next
From:
hv
Date:
February 25, 2003 07:18
Subject:
Re: [perl #20682] [fix] @- array not visible in s///
Message ID:
200302251520.h1PFKkw14382@crypt.compulink.co.uk
Enache Adrian <enache@rdslink.ro> wrote:
:$ perl -le '$_="123"; s/(1)(2)(3)/$#-/; print'
:
:It should print 3.

Thanks, applied as #18776 with a slightly extended test.
Note that without this patch it was picking up the previous value of @-.

Also added the $^N, $^R extension as #18777; additional tests for these
in t/op/subst.t would be appreciated.

Hugo

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About