Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: m//g behaves strange...

by Anonymous Monk
on Nov 09, 2003 at 21:28 UTC ( #305716=note: print w/replies, xml ) Need Help??


in reply to m//g behaves strange...

Your test output is entirely expected behavior according to the documentation. Perhaps it would be better if you indicated what you expected the output to be.

  1. m//g returns true or false in scalar context.
  2. \G is not useless.
  3. m//g won't reset pos() until the match fails.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2021-07-28 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?