Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What's the best way to use a module by an alias or short name?
In Python you can do "import foo.barista.bazoo.qux as fbbq". If I have a Perl module with a long name (ex. Foo::Barista::Bazoo::Qux), how can I refer to its contents using something like $fbbq::the_scalar instead of $Foo::Barista::Bazoo::Qux::the_scalar?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I use a module via a short name or alias?
by ikegami (Patriarch) on Feb 17, 2010 at 17:50 UTC | |
|
Re: How can I use a module via a short name or alias?
by ctilmes (Vicar) on Feb 17, 2010 at 17:44 UTC | |
|
Re: How can I use a module via a short name or alias?
by Fletch (Bishop) on Feb 17, 2010 at 17:51 UTC | |
by Anonymous Monk on Feb 17, 2010 at 18:10 UTC | |
|
Re: How can I use a module via a short name or alias?
by DrWhy (Chaplain) on Jan 17, 2011 at 18:03 UTC |