in reply to
variables from STDIN
I think you should consider to use language-hashes instead of arrays.
%english = {"a" => "V", "b" => "C"}
etc.
You can look up each character's class easily, no need to multi-iterate over several arrays.
Comment on
Re: variables from STDIN
Download
Code
In Section
Seekers of Perl Wisdom