Re: [Module::Build] Buglet: Creative use of $VERSION confuses M::B
Status: Beta
Brought to you by:
kwilliams
|
From: Nick Ing-S. <ni...@in...> - 2006-03-27 15:07:32
|
Johan Vromans <jvr...@sq...> writes:
>The following sequence of statements (copied from Config::IniFiles
>2.38) confuses the version number detection:
>
> package Config::IniFiles;
> $Config::IniFiles::VERSION =3D (qw($Revision: 2.38 $))[1];
> require 5.004;
> use strict;
> # Eliminate annoying warnings
> if ($^W) {
> $Config::IniFiles::VERSION =3D $Config::IniFiles::VERSION;
> }
>
>This causes the following message:
>
> Package 'Config::IniFiles' already declared with version '2.38'
> ignoring new version ''.
The "creative use" being the assigning it to itself rather=20
than using 'our' or 'use vars' to mark it as not subject to=20
'used only once' warning?
Would writing if on one line:=20
if ($^W) { $Config::IniFiles::VERSION =3D $Config::IniFiles::VERSION; }
Suffice to hide it from the pseudo-parser?
>
>-- Johan
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webca=
st
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=3D=
121642
>_______________________________________________
>Module-build-general mailing list
>Mod...@li...
>https://lists.sourceforge.net/lists/listinfo/module-build-general
|