in reply to Reading zipped files with Net::SFTP

Perhaps I spoke too soon. I ended up using Net::SFTP::Foreign and writing to a file handle like this:

open my $handle, '| gunzip -c '; $ssh->get($remote, $handle) or die "get failed:".$ssh->error; print "opened handle \n";