Convert::MojiConvert between lists of characters | |
Download |
Convert::Moji Ranking & Summary
Advertisement
- License:
- Choose...
- Publisher Name:
- Ben Bullock
- Publisher web site:
- http://search.cpan.org/~bkb/
Convert::Moji Tags
Convert::Moji Description
Convert between lists of characters Convert::Moji is a Perl module that transforms one list of characters into another. Here are some ways you could make a rot13 transformer with this module: use Convert::Moji; # Using a table my %rot13; @rot13{('a'..'z')} = ('n'..'z','a'..'m'); my $rot13 = Convert::Moji->new (); # Using tr my $rot13_1 = Convert::Moji->new (); # Using a callback sub rot_13_sub { tr/a-z/n-za-m/; return $_ } my $rot13_2 = Convert::Moji->new ();Then to do the actual conversion my $out = $rot13->convert ("secret");and now $out contains "frperg".You also can go backwards with my $inverted = $rot13->invert ("frperg");and now $inverted contains "secret". Requirements: · Perl
Convert::Moji Related Software