Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Golf: ROT-n

by tilly (Archbishop)
on Nov 09, 2004 at 18:54 UTC ( #406428=note: print w/replies, xml ) Need Help??


in reply to Golf: ROT-n

Fore! 38 strokes...
#23456789_123456789_123456789_12345678 $_=pop;for$x(1..pop){y/a-z/b-za/}print

UPDATE: Looking at other solutions inspired an improvement to 36 strokes.
#23456789_123456789_123456789_123456 $_=pop;eval"y/a-z/b-za/;"x pop;print

Replies are listed 'Best First'.
Re^2: Golf: ROT-n
by hardburn (Abbot) on Nov 09, 2004 at 19:05 UTC

    tilly++. Not the most efficient approach, but defiantely one I wouldn't have thought of.

    "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://406428]
help
Chatterbox?
[Discipulus]: yes, unfortunately.
[Corion]: Discipulus: you can "easily" trap shutdown/logoff in a Win32::GUI application by capturing and responding to the appropriate message
[LanX]: choroba wants to scale further? :)
[Discipulus]: I read an article about how much the female condition has got worst in the eastern europe after the fall of social policies
LanX has a friend in Berlin who switched to go(lang) and just got a kid ...
[marto]: good morning all
[Corion]: Hi marto ;)
[Discipulus]: Corion ah! you opened a new search path! thanks
[choroba]: LanX No, but they grow and want more!
LanX was conditioned by a female

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-01-17 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (154 votes). Check out past polls.