Subject: | Perl::Tidy enable warinings globally |
Hi.
I found, that following code produce annoying warning:
require Perl::Tidy;
...
require AnyEvent::IO;
That is, because, Perl::Tidy enable warning globally:
BEGIN { $^W = 1; } # turn on warnings
Is it really necessary?
Show quoted text
> perl-tidy enables warnings randomly for *other* modules that might or
> might not be prepared for it (kind of enforcing its own coding standard on
> other modules), and only when they are loaded after perl::tidy.
>
> it's the same as if perl-tidy went into every module loaded after it itself
> is loaded and added some "use warnings ..." line.
>
> if perl-tidy wants warnings for its own code, it should "use warnings".