Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: carp always showing stacktraceby LanX (Saint) |
on Jul 21, 2020 at 12:37 UTC ( [id://11119594]=note: print w/replies, xml ) | Need Help?? |
Thanks for the SO-link ... I totally agree with you that this naming is unfortunate. To the point that I can't read my own modules w/o comments. Now I'm pondering about aliasing them in my own modules, to help me understand my code expanding the text from SO with potential aliases. There are 2 sets of yes/no options. The function can be fatal (like die) or nonfatal (like warn). It can report just the line where the function was called, or it can report a full backtrace.
FWIW: Renaming subs is easy in Perl. *warn_user = \&Carp::carp
Cheers Rolf
°) it's not warning the caller
In Section
Seekers of Perl Wisdom
|
|