[Catalyst] Perl 5.10 warnings. ("used only once")
drbean at freeshell.org
Sun Jan 11 05:17:02 GMT 2009
On Sun, 11 Jan 2009, Chisel Wright wrote:
> On Fri, Nov 07, 2008 at 12:09:54AM +0000, Greg Matheson wrote:
> > On Thu, 06 Nov 2008, Bill Moseley wrote:
> > > > Name "Catalyst::Controller::setup_dispatcher" used only once:
> > > > possible typo at /usr/share/perl/5.10/NEXT.pm line 58.
> > > I patched my NEXT.pm which seemed to suppress it. I've attached.
> > > Does just setting a scalar by the same name to undef seem like a
> > > reasonable way to suppress this noise?
> > Someone on #perl suggested 'no warnings "only"', or something.
> Was this resolved?
> I've not been able to find anything tonight. I know it's not critical,
> but I'd quite like to clean up my output/logs.
perllexwarn doesn't say what "no warnings 'once'" will do, but
patched into the offending module, it turns off the warning about
names used only once.
The 'warnings' man page also doesn't say it will do this either.
More information about the Catalyst