Rot-N ciphers are pretty trivial in Perl, as is passing a string to the shell; hardly fodder for "ruling them all". But if you could do it easily in other languages, why are you looking for a Perl solution? What does the solution you worked out in some other language lack that you need the Perl version to do for you?
It's fine to be new. It's fine to be curious as to how to accomplish something. It's great that you want to learn (I'm assuming). But why let us have all the fun when it's something you could do (and learn from) yourself?
The tools you will need are tr/// (discussed in perlop), system, and the -e command line switch, discussed in perlrun. A look at perlintro may also be helpful to you.
Since you know ahead of time what the rotation will be, you won't need to deal with dynamic construction of the transliteration. It's as straight-forward as Rot-13. After a small amount of searching you would have arrived here.
Dave
In reply to Re: One-liner to rule them all...
by davido
in thread One-liner to rule them all...
by fosskers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |