Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to alias a whole namespace to another namespace (in this case main::)

by aquarium (Curate)
on Nov 15, 2004 at 12:32 UTC ( #407807=note: print w/replies, xml ) Need Help??


in reply to How to alias a whole namespace to another namespace (in this case main::)

How about just setting your current namespace with "package Util", and use/require all the modules...they'll go into that namespace. When you want them in main namespace for a while, just take out "package Util" from the code.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: How to alias a whole namespace to another namespace (in this case main::)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-10-26 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?