in reply to PGP encryption command not working thru Perl Backticks
I say should because your perl version is very old -- Perl 5.10 fixed a host of inconsistent behaviors and I'm not certain if 5.8.4 handles system call escaping. The oldest docs I checked (5.8.8) were ambiguous on the point (link).$dataFile = '/opt/ExportedPGPKeys/SampleData.txt'; $isEncrypted = do{ open my $exec, '-|', qw'pgp -ea +batchmode', $dataFile, @sys or di +e "PGP pipe failed: $!"; binmode $exec; <$exec>; }; print " The output value is $isEncrypted \n";
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PGP encryption command not working thru Perl Backticks
by newperlmonkey (Novice) on Oct 08, 2015 at 15:03 UTC | |
by kennethk (Abbot) on Oct 08, 2015 at 15:12 UTC | |
by newperlmonkey (Novice) on Oct 08, 2015 at 16:12 UTC | |
by kennethk (Abbot) on Oct 08, 2015 at 16:27 UTC |