Skip Menu |

This queue is for tickets about the Module-Load CPAN distribution.

Report information
The Basics
Id: 87492
Status: open
Priority: 0/
Queue: Module-Load

People
Owner: Nobody in particular
Requestors: bpj [...] melroch.se
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Le 2013-07-31 19:52:54, bpj@melroch.se a écrit :
Show quoted text
> 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)

This reports lacks the useful information: what contains $filename.

A dump of the variable using Devel::Peek would be helpful.

-- 
Olivier Mengué - http://perlresume.org/DOLMEN - https://gratipay.com/dolmen/