Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: The story of a strange line of code: pos($_) = pos($_);

by LanX (Saint)
on Mar 10, 2010 at 12:31 UTC ( [id://827774]=note: print w/replies, xml ) Need Help??


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

Hi ambrus

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
    His problem has nothing to do with pos. pos was his solution.
      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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://827774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found