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"
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
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.