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

Re^2: Golf: ROT-n

by fruiture (Curate)
on Nov 09, 2004 at 17:15 UTC ( #406395=note: print w/ replies, xml ) Need Help??


in reply to Re: Golf: ROT-n
in thread Golf: ROT-n

ok, solving the problem, 58, or 59 if the ambiguity warning disturbs you.

# 1 2 3 4 5 # 3456789 123456789 123456789 123456789 123456789 123456789 print map{chr+(($_=$ARGV[0]+ord)>122?-26:0)+$_}split//,pop ; print map{chr((($_=$ARGV[0]+ord)>122?-26:0)+$_)}split//,pop ;

update: changed hiding code here, too

--
http://fruiture.de


Comment on Re^2: Golf: ROT-n
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2015-07-28 21:57 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 (259 votes), past polls