Skip Menu |

This queue is for tickets about the CLASS CPAN distribution.

Report information
The Basics
Id: 28866
Status: rejected
Priority: 0/
Queue: CLASS

People
Owner: Nobody in particular
Requestors: colossus.forbin [...] gmail.com
Cc:
AdminCc:

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



Subject: package $CLASS::SubClass
is it possible to use CLASS or $CLASS when defining subclasses? I'd really like to avoid package `Really::Long::Class::Subclass` if I can do `package $CLASS::SubClass`.
On Thu Aug 16 23:14:20 2007, forbin wrote: Show quoted text
> is it possible to use CLASS or $CLASS when defining subclasses? I'd > really like to avoid package `Really::Long::Class::Subclass` if I can do > `package $CLASS::SubClass`.
Sorry, the package statement doesn't do any variable interpolation. AFAIK there's nothing to be done about that. On a related note you might want to look at aliased.pm. http://search.cpan.org/dist/aliased