You don't have to replace every instance of warn() with cluck(). You just have to make perl call cluck() when it calls warn().
The implementation of cluck() is simply
package Carp; sub cluck { warn longmess @_ }
Make your __WARN__ handler do that and you're all set.
In reply to Re^3: Automatic stack tracebacks in warnings?
by brian_d_foy
in thread Automatic stack tracebacks in warnings?
by Tanktalus
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |