Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2016-12-08 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (144 votes). Check out past polls.