Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re-use of a global match

by moritz (Cardinal)
on Aug 01, 2007 at 09:01 UTC ( [id://629995]=note: print w/replies, xml ) Need Help??


in reply to Re-use of a global match

You are using the g modifier.

That means the first time you are looking for the first match, second time for the second match - but there is no second match (and never will, because your regexp is anchored).

See perlre and perlop for details.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2026-04-21 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.