GnuPG again: problem with if statement evaluation

2006-05-25 Thread Jason Balicki
I'm back. This is a piece of code taken from a larger program. I'm trying to determine that the encryption succeded, but when I try to evaluate the code, it always evaluates false even though the encryption works and produces an encrypted file. Here's the specific bit I'm concerned with: if ($g

Re: GnuPG again: problem with if statement evaluation

2006-05-25 Thread Anthony Ettinger
check $? or $! $gp->foo() or die "$!"; my $output = $gp->foo(); print "return code: $?"; see perldoc perlvar On 5/25/06, Jason Balicki <[EMAIL PROTECTED]> wrote: I'm back. This is a piece of code taken from a larger program. I'm trying to determine that the encryption succeded, but when

Re: GnuPG again: problem with if statement evaluation

2006-05-25 Thread Anthony Ettinger
ps...you're checking if it has a value, 256 (a typical error return code) would pass that test. On 5/25/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: check $? or $! $gp->foo() or die "$!"; my $output = $gp->foo(); print "return code: $?"; see perldoc perlvar On 5/25/06, Jason Balicki

Re: GnuPG again: problem with if statement evaluation

2006-05-25 Thread John W. Krahn
Jason Balicki wrote: > > This is a piece of code taken from a larger program. > > I'm trying to determine that the encryption succeded, but when > I try to evaluate the code, it always evaluates false even though > the encryption works and produces an encrypted file. > > Here's the specific bit