Re: [Module::Build] Buglet: Creative use of $VERSION confuses M::B
Status: Beta
Brought to you by:
kwilliams
From: Yitzchak Scott-T. <sth...@ef...> - 2006-03-28 09:04:59
|
On Tue, Mar 28, 2006 at 12:47:12AM -0800, Yitzchak Scott-Thoennes wrote: > On Mon, Mar 27, 2006 at 04:07:24PM +0100, Nick Ing-Simmons wrote: > > Would writing if on one line: > > > > if ($^W) { $Config::IniFiles::VERSION = $Config::IniFiles::VERSION; } > > > > Suffice to hide it from the pseudo-parser? > > If the goal is to get Config::IniFiles to work with M::B rather than the > other way around, best just to make it: > > $Config::IniFiles::VERSION = $Config::IniFiles::VERSION = (qw($Revision: 2.38 $))[1]; > > in the first place. Lest this be adopted by others unnecessarily, let me mention that VERSION is exempted from the used only once warning since at least 5.6.0. |