# 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
---------------------------------------------------

Reply via email to