I would use the -f command line option and use pgp as a filter:
my $cmd = "pgp -f -ea +batchmode publickey.pgp >SampleData.txt.asc"; open my $pgp, "| $cmd" or die "Couldn't run [$cmd]: $!"; print $pgp "Hello World"; close $pgp;
In reply to Re: OT: PGP encryption command to use in Perl
by Corion
in thread OT: PGP encryption command to use in Perl
by newperlmonkey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |