Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-08-22 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (165 votes), past polls