Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 imbibing at the Monastery: (7)
As of 2015-07-06 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls