[Module::Build] Buglet: Creative use of $VERSION confuses M::B
Status: Beta
Brought to you by:
kwilliams
|
From: Johan V. <jvr...@sq...> - 2006-03-27 12:49:58
|
The following sequence of statements (copied from Config::IniFiles
2.38) confuses the version number detection:
package Config::IniFiles;
$Config::IniFiles::VERSION = (qw($Revision: 2.38 $))[1];
require 5.004;
use strict;
# Eliminate annoying warnings
if ($^W) {
$Config::IniFiles::VERSION = $Config::IniFiles::VERSION;
}
This causes the following message:
Package 'Config::IniFiles' already declared with version '2.38'
ignoring new version ''.
-- Johan
|