in reply to simpliest way to add "language" to my app

You may be looking for a hash of closures ...

%lang = ( "shutdown" => sub { ... }, "show" => sub { ... }, "lock_user" => sub { ... } # etc etc ); . . . &{$lang{$input}}(@args);

This is nice and simple and easy to extend to more commands or more complicated functions.


Remember, when you stare long into the abyss, you could have been home eating ice cream.