in reply to Re^2: OT: PGP encryption command to use in Perl
in thread OT: PGP encryption command to use in Perl

Did you open it with
open my $fh, "| pgp -f ..." or die ...
or did you perhaps use the -f option with backticks?

I don't know the specific version of pgp, Corion's seems to read from STDIN when -f is used, so this would just wait for your input from the keyboard (with backticks) instead of open "| ..." reading from the file handle.

Update: Better style: Three argument form
open my $fh, '|-', $cmd or die "failed to execute:\n\t$cmd\n$! +";
References: qx and Quote Like Operators for backticks, Using open() for IPC for open