Skip Menu |
 

This queue is for tickets about the constant-lexical CPAN distribution.

Report information
The Basics
Id: 73694
Status: resolved
Priority: 0/
Queue: constant-lexical

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

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



Subject: Allow "use constant::lexical"
Download (untitled) / with headers
text/plain 496b
Hi, Would you consider adding a feature: to make the following valid: use constant::lexical; If you do that now, you get: Can't use undef as constant name at - line 1 BEGIN failed--compilation aborted at - line 1. This means you can't do something like: use constant::lexical; $version = $constant::lexical::VERSION; I have a couple of tools which do things like this. I had a quick look at the import function, but haven't got my head around it yet :-) cheers, Neil
Download (untitled) / with headers
text/plain 603b
On Mon Jan 02 20:07:59 2012, NEILB wrote: Show quoted text
> Hi, > > Would you consider adding a feature: to make the following valid: > > use constant::lexical; > > If you do that now, you get: > > Can't use undef as constant name at - line 1 > BEGIN failed--compilation aborted at - line 1. > > This means you can't do something like: > > use constant::lexical; > $version = $constant::lexical::VERSION; > > I have a couple of tools which do things like this. > > I had a quick look at the import function, but haven't got my head > around it yet :-)
I’ve fixed this in version 2.0001.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.