susan lam wrote:
> Is it possible to execute two actions such as a print
> statement and a subroutine after die?
> 
> open(FILE, $file) || die "Cannot open file" &&
> email()???

   open(FILE, $file) or email(), die "Cannot open file";

or, perhaps more readable:

   unless(open(FILE, $file)) {
       email();
       die "Cannot open file: $!\n";
   }

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to