Lightning flashed, thunder crashed and "Craig Moynes/Markham/IBM" <[EMAIL PROTECTED]
bm.com> whispered:
| open ( ERR, "<scp_err" );

Always check the return status of your opens.

| while ( !eof(ERR) )
|         $in = <ERR>;

You are mixing things here you don't want to mix.  This should just be:

while ($in = <ERR>) {

You *can* mix these, but there is no real reason to.  Especially not in
your sample code.

|         chop $in;

chop indiscriminately removes the final character of the string.  Your best
option is to use chomp which only removes the end of record separator (if
it exists).

| ssh: HOST: Host not found
| lost connection
| lost connectionHOST: Host not found

What version are you using.  This is not the output I get if I use the
first two lines as the input file (scp_err).  My output looks like what I'd
expect:

ssh: HOST: Host not found
lost connection
Message - ssh: HOST: Host not foundlost connection

Reply via email to