Re: Curious warning from Module::Build 0.2808

[email protected] ("Yitzchak Scott-Thoennes")
Newsgroups perl.module.build
Message-ID <[email protected]>
On Thu, May 15, 2008 6:48 pm, Eric Wilhelm wrote:
> # from Ron Savage
> # on Thursday 15 May 2008:
>
>
>> # Eliminate annoying warnings if ($^W) {
>>  $Config::IniFiles::VERSION =
>> $Config::IniFiles::VERSION;
>> }
>
> Do you need the 'only once' workaround?  Perhaps you want to just:
>
> package Config::IniFiles;
> $VERSION = (qw($Revision: 2.39 $))[1];

I'm guessing you mean

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

Given that the source says "require 5.004;", but VERSION wasn't exempted
from the "used only once" warning till 5.6.0, I'd guess the workaround is
needed.
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.