Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Golf: ROT-n

by dragonchild (Archbishop)
on Nov 09, 2004 at 16:46 UTC ( #406386=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #        1         2         3         4         5
    # 3456789 123456789 123456789 123456789 123456789 1234567890
    $n=shift;print chr(($n-97+ord)%26+97)for split//,pop
    
  2. or download this
    #        1         2         3         4         5
    # 3456789 123456789 123456789 123456789 123456789 1234567890
    print chr 97+($ARGV[0]-97+ord)%26for pop=~/./g
    
  3. or download this
    #        1         2         3         4         5
    # 3456789 123456789 123456789 123456789 123456789 1234567890
    print chr 97+($ARGV[0]+7+ord)%26for pop=~/./g
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-12-26 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls