my $enc_pass = shift ( @{ [ <$file> ] } ); #### ENCRYPTED_PASSWORD #### print $enc_pass; #### ENCRYPTED_PASSWORD #### my $gpg_output = `gpg --passphrase-fd 0 --decrypt --output oldfile newfile`;