[Chicago-talk] Warn Only Once

Robert Blackwell robert at robertblackwell.com
Mon Nov 5 12:10:19 PST 2012

On Mon, Nov 5, 2012 at 3:04 PM, Bell, Doug <doug.bell at baml.com> wrote:
> A while back I wrote a module I called "WebGUI::Derp", the DEprecation caRP.
> It would do a warning, but only once, based on the location of the caller.
> After I wrote that, I stumbled across a CPAN module that did the same thing,
> warn only once, but now I can't seem to find it. Does anyone happen to have
> used that module? I know I can get away with a small warn_once sub, but I'd
> rather use a module and not worry about the maintenance.
> Doug Bell -- doug.bell at baml.com

I don't know the "warn once" module you are asking about. But guessing
this has something to do with deprecating code. If that is the case
the Devel::Deprecate, https://metacpan.org/module/Devel::Deprecate,
might help. I have never used it but I really like the idea.


More information about the Chicago-talk mailing list