develooper Front page | perl.perl5.porters | Postings from April 2010

[perl #5004] [bug? 5.6.0] \G in split pattern

Thread Previous
From:
Alexandr Ciornii via RT
Date:
April 28, 2010 13:44
Subject:
[perl #5004] [bug? 5.6.0] \G in split pattern
Message ID:
rt-3.6.HEAD-27388-1272487455-578.5004-14-0@perl.org
Same result on 5.12.0.

On Sat Dec 23 00:12:51 2000, hv@crypt.compulink.co.uk wrote:

> Not sure if this is a bug, but I thought it worth mentioning for
> consideration.
> 
> crypt% ./perl -wle 'print join "*", split /\G(an|.)/, shift' banana
> *b*anana
> crypt%
> 
> I had hoped it would print something like "*b**an**an**a*". Result
> is the same under bleadperl.

-- 
Alexandr Ciornii, http://chorny.net


Thread Previous


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