Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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=

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029729]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-09-23 01:18 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (270 votes). Check out past polls.