If you're using Perl 5.10 or greater, you can also use the defined or operator:
my $f1missing = $t->waitfor(String => 'That file is unavailable', errmode => 'return') // 0;What the code above does is similar to what Corion suggested. It tests whether the result is defined, and will substitute with 0 if it is not.
In reply to Re: Scope Issue
by AR
in thread Scope Issue
by MKJ747
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |