in reply to Death can be such a Tragedy
If your program can recover and continue operations, use warn to let the user know that something didn't happen as expected. If there is no way the program can continue, use die.
Just be careful to properly check for errors and not use or die/warn blindly. The example that comes to mind is system, which returns the status as returned by the command executed, so that zero means "no error" and non-zero values indicate error conditions (i.e., the opposite of the usual indication in Perl).
--ZZamboni
|
|---|