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