Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: calling subroutines within a regular expression?

by SankoR (Prior)
on Apr 03, 2009 at 22:43 UTC ( [id://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"; } # ...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-28 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found