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

Re: pattern match operator

by halfcountplus (Hermit)
on Apr 16, 2012 at 17:21 UTC ( [id://965365]=note: print w/replies, xml ) Need Help??


in reply to pattern match operator

There's a typo in: if($_ =- m/$pat/g)

The =- should be =~.

Ps: From now on, wrap your code in <code> tags. See Writeup Formatting Tips,

Log In?
Username:
Password:

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

    No recent polls found