in reply to Re^2: Processing data from SSH streamin thread Processing data from SSH stream
An example from the perlvar doco:
my $content = ''; open my $fh, "foo" or die $!; { local $/; $content = <$fh>; } close $fh; [download]