use IO::Socket;
use IPC::Open2;
use Net::Telnet qw(TELOPT_ECHO);
-use Carp;
+use Carp qw{cluck};
# cease communications
sub cease
kill(9, $pid);
}
dbgclose();
+# $SIG{__WARN__} = sub {my $a = shift; cluck($a); };
sleep(1);
exit(0);
}
# deal with args
#
-$call = uc shift @ARGV;
+$call = uc shift @ARGV if @ARGV;
$call = uc $myalias if !$call;
-$connsort = lc shift @ARGV;
+$connsort = lc shift @ARGV if @ARGV;
$connsort = 'local' if !$connsort;
$loginreq = $call eq 'LOGIN';
open IN, "$data/offline" or die;
while (<IN>) {
s/\n/\r/og if $mode == 1;
- print $stdout;
+ print $stdout $_;
}
close IN;
} else {