Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: calling subroutines within a regular expression?

by CardinalNumber (Prior)
on Apr 03, 2009 at 22:43 UTC ( #755360=note: print w/ replies, xml ) Need Help??


in reply to calling subroutines within a regular expression?

Hmmm... Seeing as REGEX is a regular expression in your example, why not just...

# ... if ($s =~ REGEX) { print "found\n"; } # ...


Comment on Re: calling subroutines within a regular expression?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2014-07-25 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (171 votes), past polls