Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: oh for y///e

by Eily (Curate)
on Dec 11, 2013 at 14:27 UTC ( #1066627=note: print w/ replies, xml ) Need Help??


in reply to oh for y///e

What are you trying to do with the /e switch? eval 'b-zaZA-Y'? I don't see the point. And if you want to eval the result, just do eval y/a-zA-Z/b-zaZA-Y/r while <DATA>;

And if you just put the /e by mistake, just take it away and your code will work just fine.


Comment on Re: oh for y///e
Download Code
Re^2: oh for y///e
by educated_foo (Vicar) on Dec 11, 2013 at 15:35 UTC
    What are you trying to do with the /e switch? eval 'b-zaZA-Y'? I don't see the point.
    Maybe something like:
    $cryped = substitution_cypher(); $text =~ y/a-z/$crypted/e;
    instead of
    eval "\$text =~ y/a-z/$crypted/";
      It would be cool when writing Obfuscated Code to eval the results of a transform without using eval to make it obvious what you are doing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (20)
As of 2015-07-06 20:22 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 (83 votes), past polls