http://www.perlmonks.org?node_id=992181


in reply to Re: Getting variable sized reapones using Net::SSH2
in thread Getting variable sized reapones using Net::SSH2

Thanks. It works like a champ. Got to love undocumented features. While messing around I also found this may also work. I think your's is probably better.

print $chan2 "\ndir\n"; while (<$chan2>) { print "$_"; }
Paradise: Florida, full tank of gas, no appointments.