Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Return value from a binding operator?

by AnomalousMonk (Abbot)
on Apr 13, 2013 at 21:09 UTC ( #1028554=note: print w/ replies, xml ) Need Help??


in reply to Return value from a binding operator?

This is a prime example of a situation in which the effort of Reading The Fine Manual would have been generously rewarded. See the discussion of  m/PATTERN/ in Regexp Quote-Like Operators in perlop and in particular the sub-section on "Matching in list context".

There are also tools for elucidating regex behavior. See YAPE::Regexp::Explain for regexes of a vintage no later than Perl 5.6. See also davido's nice Perl Regular Expression Tester, which is very informative about the pattern of the  m!/?([^/]+$)! regex of the OP.


Comment on Re: Return value from a binding operator?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2015-07-01 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (19 votes), past polls