eXile has asked for the wisdom of the Perl Monks concerning the following question:
but that doesn't work, at least not for my Class::DBI Object-modules: When I try to use an object by its shorter name, it's methods are not defined. Another try that failed is using inheritance, but somehow this doesn't work either:package OrganizationName::ProjectName::Object; *ProjectName::Object = *OrganizationName
(complains about not being able to find object methods via the short package name). I have tried to find information on this, but I think I'm using the wrong search terms. Can anybody tell me if what I want is possible, and where to find information about it?package OrganizationName::ProjectName::Object; ... package code here ... package ProjectName::Object; use base "OrganizationName::ProjectName::Object"; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Aliasing a namespace/object
by Ovid (Cardinal) on Jan 28, 2005 at 17:53 UTC | |
|
Re: Aliasing a namespace/object
by stvn (Monsignor) on Jan 28, 2005 at 17:48 UTC | |
|
Re: Aliasing a namespace/object
by dragonchild (Archbishop) on Jan 28, 2005 at 17:49 UTC | |
|
Re: Alias for object namespace
by broquaint (Abbot) on Jan 29, 2005 at 01:34 UTC | |
|
Re: Alias for object namespace
by gaal (Parson) on Jan 29, 2005 at 14:01 UTC |