in reply to GPG w/o modules question

Change your system call to this:

system( "echo $tab[$cnt] | gpg --passphrase-fd 0 ~/file.gpg" );
And that should do it.

-sauoq
"My two cents aren't worth a dime.";