Bug#521609: Warning: Name "Archive::Tar::WARN" used only once: possible typo

Vincent Lefevre vincent at vinc17.org
Tue Mar 31 23:50:45 UTC 2009


On 2009-03-31 21:31:41 +0300, Niko Tyni wrote:
> > >  use vars qw($Archive::Tar::WARN);
> > 
> > This doesn't seem to be documented and may be annoying if there
> > are lots of variables. Also, if the module gets renamed and the
> > user modifies only the "require" line, this will defeat the purpose
> > of the warning.
> 
> It's certainly documented, see 'perldoc vars'. But yes, possibly
> not the best way to solve this.

OK, but without knowing this feature first, it's a bit difficult
to guess the right command to type: "perldoc -f use" doesn't even
mention it. Anyway I think that the reason is that this pragma is
documented as obsolete by "perldoc vars". So, one should not use
it.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)






More information about the Perl-maintainers mailing list