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

Re: [perl #21411] [fix] Postponed RE with split()

Thread Previous | Thread Next
From:
hv
Date:
March 2, 2003 09:39
Subject:
Re: [perl #21411] [fix] Postponed RE with split()
Message ID:
200303021741.h22Hfc910177@crypt.compulink.co.uk
Enache Adrian <enache@rdslink.ro> wrote:
:Simpler example:
:$ perl -le 'print join "|", split /((??{$i++}))/,"-1-3-5-"'
:
:This should print '-|1|-|3|-|5|-' not '-|1|-|7|-|5|-'
:
:The expression inside (??{ ... }) corrupts the stack.

Thanks, patch applied as #18805.

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