Subject: | Bug: load($filename) fails load("$filename") works |
Date: | Wed, 31 Jul 2013 19:52:37 +0200 |
To: | bug-module-load [...] rt.cpan.org |
From: | BP Jonsson <bpj [...] melroch.se> |
On perl perl-5.12.5/perl-5.14.4/perl-5.18.0 with
Module::Load 0.18/0.24 I get an error message
Invalid version format (non-numeric data) at
/home/benct/perl5/perlbrew/perls/perl-5.14.4/lib/site_perl/5.14.4/Module/Load.pm
line 20.
when trying to load a filename contained in a scalar variable:
load($filename)
If I interpolate the variable in a quoted string it works!
load("$filename")
With a module name of the format Some::Module as the value of
the variable I see no problem.
Unfortunately I'm leaving on vacation within the hour and will be
away until 9 August. I'll try to check mail on my phone while away
if the hotel provides free wifi, but I'll be many miles away from
this computer.
/bpj