Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 30027
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

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



Subject: use Log::Log4perl '1.12'
use Log::Log4perl '1.12'; Unknown Option(s): 1.12 at Log/Log4perl.pm line 203. Sorry if I stupidly missed something in the docs.
From: KGOESS [...] cpan.org
On Tue Oct 16 05:53:06 2007, LGODDARD wrote: Show quoted text
> use Log::Log4perl '1.12'; > > Unknown Option(s): 1.12 at Log/Log4perl.pm line 203. > > Sorry if I stupidly missed something in the docs.
The version part needs to be a bareword without the quotes, this does what you want: use Log::Log4perl 1.12; From "perldoc -f use" use Module VERSION LIST VERSION may be either a numeric argument such as 5.006... If the VERSION argument is present between Module and LIST, then the "use" will call the VERSION method in class Module with the given version as an argument.
closing bug report
Subject: Re: [rt.cpan.org #30027] use Log::Log4perl '1.12'
Date: Tue, 16 Oct 2007 20:40:01 +0100
To: bug-Log-Log4perl [...] rt.cpan.org
From: Lee Goddard <London [...] LeeGoddard.net>
via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=30027 > > > On Tue Oct 16 05:53:06 2007, LGODDARD wrote: >
>> use Log::Log4perl '1.12'; >> >> Unknown Option(s): 1.12 at Log/Log4perl.pm line 203. >> >> Sorry if I stupidly missed something in the docs. >>
> > > The version part needs to be a bareword without the quotes, this does > what you want: > > use Log::Log4perl 1.12; >
> >From "perldoc -f use"
> > use Module VERSION LIST > VERSION may be either a numeric argument such as 5.006... > If the VERSION argument is present between Module and LIST, > then the "use" will call the VERSION method in class Module > with the given version as an argument. > > >
Thanks! Please kill the bug if it still lives. Incidentally, "VERSION may be.... such as 5.006..." seems to refer to the "use" pragma in the context of requiring a specific Perl version. I can't see any reference in the doc that says one should not quote the version number. The lack of typecasting in Perl does tend to lead the unsuspecting towards ignoring the relevance of quoted numbers, don't you think? Anyway, thanks for a fast response and -- as ever -- one of Perl's most useful, best implemented, modules. You guys should win a prize. lee