in reply to Re: Processing data from SSH stream
in thread Processing data from SSH stream

Thanks for all your help people :)
I eventually found the problem - totally unrelated to SSH file properties. It turns out that in processing the retrieved data from the stream that in some instances I had to undef $/. Unfortunately I forgot to redefine it afterwards. This explains why it was working for the first file processed and failing for each one after.
Again, thanks for your help :)

Replies are listed 'Best First'.
Re^3: Processing data from SSH stream
by snoopy (Curate) on May 11, 2007 at 01:34 UTC
    Btw, it's a good habit to use local to restrict the scope of modifications to special variables such as $\.

    An example from the perlvar doco:

    my $content = ''; open my $fh, "foo" or die $!; { local $/; $content = <$fh>; } close $fh;