Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: mapping warning from an eval code to actual line in text

by kcott (Archbishop)
on May 10, 2013 at 11:39 UTC ( [id://1032944]=note: print w/replies, xml ) Need Help??


in reply to mapping warning from an eval code to actual line in text

G'day ISAI student,

"I could not find in the subroutine any usage of $_ in pattern matching. Thanks."

$_ is the default variable to match against (see perlrequick). So, $_ =~ /$pat/ can be written as just /$pat/. I can only suggest that you might need to be looking for constructs like:

if (/$pat/) { ... for (m{$pat}g) { ...

-- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1032944]
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: (10)
As of 2024-04-18 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found