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.