Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How can I use a module via a short name or alias?

by DrWhy (Chaplain)
on Jan 17, 2011 at 18:03 UTC ( [id://882717]=note: print w/replies, xml ) Need Help??


in reply to How can I use a module via a short name or alias?

A little late to the party, but I just wanted to add my own solution which is to pull the important line out of Package::Alias and use it directly...
*AliasPkg:: = \*Other::Long::Package::Name::I::Don't::Want::To::Deal:: +With:: ;
You'll often need to put this in a BEGIN block, but YMMV.

--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://882717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found