go ahead... be a heretic | |
PerlMonks |
Re^4: Should I use carp/croak or warn/dieby Your Mother (Archbishop) |
on May 30, 2018 at 17:19 UTC ( [id://1215485]=note: print w/replies, xml ) | Need Help?? |
I agree that PHPisms like 500 extra, semi-overlapping keywords can be a bad thing but I've always liked Carp's interface. Taking the generalized and parameterized route to extremes is warn and die becoming replaced with error($level, $message) or something. I use Carp's functions enough, including longmess and shortmess for logs, that I much prefer having specific functions for acking around and such.
In Section
Seekers of Perl Wisdom
|
|