Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: regex testing for multiple values

by nefigah (Monk)
on Mar 10, 2008 at 16:39 UTC ( #673280=note: print w/ replies, xml ) Need Help??

in reply to Reaped: Re^2: regex testing for multiple values
in thread regex testing for multiple values

The <c> block looks like an artifact from his HTML, if that's what you mean--it shouldn't show up in your code...

That is, he was saying if you aren't going to use forward slashes to delimit your regex, then you need to prefix it with m:

 if ($blah =~ m#regex here#options here) instead of the usual  $blah =~ /regex here/options here

or what have you. (In your post, the regex doesn't appear to start with a forward slash.)

I'm a peripheral visionary... I can see into the future, but just way off to the side.

Comment on Re^3: regex testing for multiple values
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-12-02 05:50 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (35 votes), past polls