Re: Curious warning from Module::Build 0.2808

[email protected] (Eric Wilhelm)
Newsgroups perl.module.build
Message-ID <[email protected]>
# from Ron Savage
# on Thursday 15 May 2008:

><===8><===>
># Eliminate annoying warnings
>if ($^W)        {
>        $Config::IniFiles::VERSION = $Config::IniFiles::VERSION;
>}
><===8><===>
>
>Not sure which stmt triggered the warning.

Probably this last one.

>Worth worrying about?
>
>Since the latter 2 are in a different package, I'd expect to not get
>that warning.

It still refers to the same package variable, no matter which package is 
current.

Do you need the 'only once' workaround?  Perhaps you want to just:

  package Config::IniFiles;
  $VERSION = (qw($Revision: 2.39 $))[1];

--Eric
-- 
Like a lot of people, I was mathematically abused as a child.
--Paul Graham
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.