in reply to Telnet to script, chomp stdin issues

You should check success of open:
open my $handle, '<', "filename" or die "Cannot open: $!";
Maybe you cannot overwrite already existing moo1?
\r\n is the end-of-line on some systems. What system runs the telnet, what system does the target computer run?

Replies are listed 'Best First'.
Re^2: Telnet to script, chomp stdin issues
by chacham (Prior) on Oct 28, 2011 at 16:26 UTC
    Thanx for looking.
    • Running on Debian.
    • Telnet from Debian (same system) or Windows XP fails.
    • The file fails even when written the first time.
    • The file is updated with the current date and time.
      It also runs fine when run from the command line. It only fails when run through telnet.

      That is, i telnet to the system, xinetd picks up and runs the code.