in reply to Re^2: The story of a strange line of code: pos($_) = pos($_);
in thread The story of a strange line of code: pos($_) = pos($_);

and pos($_) = pos($_); was my solution when dealing with \G.

But I have to admit that I'm not understanding everything ambrus is talking about.

Cheers Rolf

UPDATE: corrected typo! (thx ikegami)