In the code below, open happens or die
open(LOK, ">>C:\\Perl\\RTEOlock\\check\\RTEOlock.log") || die $! ;
Can one or(||) to a subroutine instead die?
If yes, how is it worded?
R_D
20040115 Edit by BazB: Changed title from 'Novice Question #1,000,000'
In reply to Calling a custom sub on failure by Red_Dragon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |