Created
November 2, 2009 14:56
-
-
Save masak/224204 to your computer and use it in GitHub Desktop.
rot13 in Perl 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub rot13($_) { .trans: 'A..Za..z' => 'N..ZA..Mn..za..m' } | |
say(rot13($_)) for | |
q[V'ir zrnfherq vg sebz fvqr gb fvqr:], | |
q['Gvf guerr srrg ybat, naq gjb srrg jvqr.] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment