in reply to croak not like die.
vs.perl -MCarp -le 'croak "Died here"' Died here at -e line 1
from the perldoc:perl -MCarp -le 'croak "Died here\n"' Died here
The Carp routines are useful in your own modules because they act like die() or warn(), but with a message which is more likely to be useful to a user of your module.soooo.... it's not the same, but like.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: croak not like die.
by holli (Abbot) on Mar 16, 2005 at 19:14 UTC | |
|
Re^2: croak not like die.
by Joost (Canon) on Mar 16, 2005 at 22:53 UTC |