Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Processing data from SSH stream

by Spasticus (Initiate)
on May 11, 2007 at 01:00 UTC ( [id://614792]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://614792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found