Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 wandering the Monastery: (14)
As of 2014-11-24 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (143 votes), past polls