John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
However, what we really want, I think, is carp rather than a warn, respecting the caller's settings.
If you write
that still does nothing about the possibility that the caller set that category to FATAL. Furthermore, there is warnings::enabled but no indication of FATAL! This seems to be an oversight.if (warnings::enabled()) { carp "check your argument"; }
So, how can we use the warnings features in a module to best effect? Does anybody really use it?
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Bad docs
by John M. Dlugosz (Monsignor) on Aug 08, 2002 at 02:59 UTC |