in reply to Re: use Fatal;
in thread use Fatal;
Excuse my potential ignorance, but I'm wondering - for cases when you want explicit checking, couldn't you trap failures using eval {}? Then this:
is the same as this:open(FILE1, "<file1"); open(FILE2, "<file2") or die "Can't open file2: $!\n";
no?use Fatal qw(open); eval { open(FILE1, "<file1"); } open(FILE2, "<file2");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: use Fatal;
by Masem (Monsignor) on Jan 10, 2002 at 21:31 UTC | |
by chromatic (Archbishop) on Jan 11, 2002 at 09:15 UTC | |
by Aristotle (Chancellor) on Jan 10, 2002 at 21:39 UTC |
In Section
Meditations