in reply to The story of a strange line of code: pos($_) = pos($_);
Yes, combining \G and pos() is buggy. See also [bugs?] perldoc perlre, \G and pos() ...¹
Actually I wanted to send a bug report ... :-(
Cheers Rolf
UPDATEs: ¹) pos()=pos() is a workaround I used, indicating an implementation problem!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: The story of a strange line of code: pos($_) = pos($_);
by ikegami (Patriarch) on Mar 10, 2010 at 15:41 UTC | |
by LanX (Saint) on Mar 10, 2010 at 23:06 UTC |