Why does the "no warnings 'uninitialized';" not work?"use warnings" and "no warnings" are lexical, which means that you can't change them in modules you use. I'd remove "use warnings;" from Tokenizer.pm, or add
to the beginning of your program.BEGIN { $INC{"warnings.pm"}="blah" }
EDIT: To explain, %INC is a hash table where Perl keeps track of what modules it has already loaded. The above line tells Perl "yeah, yeah, I've already loaded "warnings.pm". "warnings.pm" does its work in warnings::import(), called when some code does "use warnings," but since you've told it that "warnings.pm" has already been read, and warnings::import() is undefined, Perl won't call it, and hence won't create the annoyance.
In reply to Re: How can I suppress 'uninitialized' warnings in a CPAN module?
by educated_foo
in thread How can I suppress 'uninitialized' warnings in a CPAN module?
by zork42
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |