in reply to pops, shifts and eqs
my $ok; # it's undef if( ... ){ # going to actually set it $ok = $password eq $pass ? 1 : 0 } ... if($ok){ # do good stuff } ... if(!$ok){ # if failed for any reason } ... if(defined $ok && !$ok){ # if set to false } ... if(! defined $ok){ # if unset } ... printf "Status: %s\n", (defined $ok ? ($ok?'yes':'no') : 'n/a');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pops, shifts and eqs
by barrycarlyon (Beadle) on Apr 17, 2006 at 21:09 UTC | |
by barrycarlyon (Beadle) on Apr 17, 2006 at 21:25 UTC | |
by davidrw (Prior) on Apr 17, 2006 at 21:29 UTC |