Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Determing whether a regexp has capturing matches

by adrianh (Chancellor)
on Feb 27, 2007 at 16:45 UTC ( #602333=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Determing whether a regexp has capturing matches
in thread Determing whether a regexp has capturing matches

Keep in mind that $#+ is -1 when the pattern does not match, regardless of whether there are captures.

Good point. I was just thinking of my context where I'm guaranteed a successful match.

Comment on Re^4: Determing whether a regexp has capturing matches

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-04-30 14:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.