Red_Dragon has asked for the wisdom of the Perl Monks concerning the following question:
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling a custom sub on failure
by pzbagel (Chaplain) on Jan 14, 2004 at 21:06 UTC | |
|
Re: Calling a custom sub on failure
by borisz (Canon) on Jan 14, 2004 at 21:09 UTC | |
|
Re: Calling a custom sub on failure
by b10m (Vicar) on Jan 14, 2004 at 21:11 UTC | |
by Red_Dragon (Beadle) on Jan 14, 2004 at 22:03 UTC | |
|
Re: Calling a custom sub on failure
by Abigail-II (Bishop) on Jan 14, 2004 at 21:18 UTC | |
|
Re: Calling a custom sub on failure
by mjeaton (Hermit) on Jan 14, 2004 at 20:57 UTC | |
|
Re: Calling a custom sub on failure
by revdiablo (Prior) on Jan 14, 2004 at 22:20 UTC | |
|
Re: Calling a custom sub on failure
by Roy Johnson (Monsignor) on Jan 14, 2004 at 21:30 UTC |