Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Caesar Shift

by mpeg4codec (Pilgrim)
on Aug 25, 2004 at 02:53 UTC ( #385564=note: print w/ replies, xml ) Need Help??


in reply to Caesar Shift

#!/usr/bin/perl -w use strict; chomp(my $cypher = <STDIN>); $cypher = lc($cypher); $cypher =~ tr/a-z/n-za-m/; print "ROT: $cypher\n";

Untested.


Comment on Re: Caesar Shift
Download Code
Replies are listed 'Best First'.
Re^2: Caesar Shift
by Aristotle (Chancellor) on Aug 25, 2004 at 14:31 UTC

    The point of the OP's code is to apply all 26 possible shift widths.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-08-30 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls