xevian has asked for the wisdom of the Perl Monks concerning the following question:
All of my other modules use this package. I also have a few .cgi files that just use the modules they need (they don't use TheLoader directly, but they all use at least one module that uses TheLoader)package TheLoader; BEGIN { $SIG{__WARN__} = sub { return if $_[0] =~ /inherited AUTOLOAD/; print STDERR @_; }; } package UNIVERSAL sub AUTOLOAD { ... }
I would have thought that my signal handler for __WARN__ would have handled this signal correctly. I've seen it suppress other warnings from running my tests, but with this setup it's not.Use of inherited AUTOLOAD for non-method Foo::Bar::getSomething() is d +eprecated at ....Test.pm line 200 (#1) ....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: handling __WARN__ funkiness
by cazz (Pilgrim) on Oct 07, 2005 at 20:49 UTC | |
by xevian (Sexton) on Oct 11, 2005 at 14:59 UTC | |
Re: handling __WARN__ funkiness
by japhy (Canon) on Oct 07, 2005 at 19:47 UTC | |
by xevian (Sexton) on Oct 07, 2005 at 20:39 UTC |