in reply to PGP encryption command not working thru Perl Backticks

So, what is in @sys? I recommend inspecting the generated command before running it:

my $cmd = "pgp -ea +batchmode $dataFile @sys"; warn "Running [$cmd]" if $verbose; $isEncrypted = `$cmd`;

Most likely, things in @sys need double quotes.

Replies are listed 'Best First'.
Re^2: PGP encryption command not working thru Perl Backticks
by newperlmonkey (Novice) on Oct 08, 2015 at 14:49 UTC
    Apologies for earlier saying is did not work with double quotes. After testing it properly it DID work with double quotes. Again many thanks for your promt response which is why I'm loving perl bcos of this community.