The shell is the program that processes your command line if you login to the remote system via telnet (not from perl and Net::Telnet). It is likely to be ksh, bash, sh, tcsh - but not perl. Therefore the commands that you send must be commands for your login shell as stated in the file /etc/passwd.
Your login shell appears to be ksh, as I can see from your post:
Files=> ksh: syntax error: `(' unexpected
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
| [reply] [d/l] |
When you use Net::Telnet to connect to a remote machine, it's connecting in the same way as if you used a telnet command line utility (or PuTTY, or the Windows telnet client, . . .) to log into the remote machine. Unless you have the remote machine set up with perl as your login shell, it's highly unlikely you're going to be able to use Perl directly from the command line.
| [reply] |