Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Spurious re 'eval'; warning ?

by Anonymous Monk
on Apr 24, 2013 at 22:27 UTC ( #1030549=note: print w/ replies, xml ) Need Help??


in reply to Spurious re 'eval'; warning ?

Why does this work?: perl -e '$_ = "The brown fox jumps over the lazy dog ABC god yzal eht revo spmuj xof nworb ehT";while(/(.{10,41})(?{$cap = $^N;$rev = r($cap);})(...)(??{$rev})/ig){print("$1\n")}sub r {return(join("",reverse(split("",$_[0]))))}' But not this?: perl -e '$_ = "The brown fox jumps over the lazy dog ABC god yzal eht revo spmuj xof nworb ehT";$f=10;$e=41;while(/(.{$f,$e})(?{$cap = $^N;$rev = r($cap);})(...)(??{$rev})/ig){print("$1\n")}sub r {return(join("",reverse(split("",$_[0]))))}' Please forgive me if the answer is already here. I'm feeling pretty scatter-brained today. Thanks, Rob


Comment on Re: Spurious re 'eval'; warning ?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-02-27 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    On my keyboard, Caps lock is:








    Results (451 votes), past polls