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

Re: string on right side of m//?

by BrowserUk (Pope)
on Apr 21, 2013 at 07:37 UTC ( #1029729=note: print w/ replies, xml ) Need Help??

in reply to string on right side of m//?

It is also legal to use a number or another variable wherever you might use a regex:

$s = '0123456789';; print $s =~ 0;; 1 $r = 123;; print $s =~ $r;; 1

Whatever you put there, perl will try to resolve as a regex.

The downside is that you can't use modifiers without // or m//.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
div class=

Comment on Re: string on right side of m//?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-10-10 20:29 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (258 votes), past polls