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


in reply to Processing files in remote machine

You will need to provide far more context than you did.

As a long shot, I use the following to locally process the contents of a file that is stored encrypted on a machine reachable through ssh:

... my $remote_file = "Storage/bar20100722.gz.gpg"; open my $fh, "ssh corion\@storage cat $remote_file | gpg2 --decrypt - +| gunzip -cd |" or die "Couldn't open '$remote_file' "; }; ...