in reply to use Fatal;
$clouds = get_clouds( $server ); # note no die if ( $clouds ) { $options{ clouds } = $clouds; } $users = get_users( $server ) or die "Cannot connect to user list" if ( $users ) { $options{ users } = $users; } #not neccesary but nice +ly parallel
So, IMO, it's nearly always better to explicitly state the die condition than to group them into one. While 90% of the time you may not have to worry about special cases, if you find the need to , you'll have to do a lot of code modification in order to get the special case to work.
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re3: use Fatal;
by tye (Sage) on Jan 10, 2002 at 11:38 UTC | |
|
Re^2: use Fatal;
by Aristotle (Chancellor) on Jan 10, 2002 at 21:05 UTC | |
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 |