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.