Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by aufflick (Deacon)
on Nov 15, 2004 at 04:35 UTC ( #407767=note: print w/replies, xml ) Need Help??


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

You are completely correct, but there is a LOT of legacy files, some of which have multi-level require's, and I'm not going to update them all at one time. It would take too much time and be too dangerous.

This way all the developers here can gradually "modernise" code as they go without breaking older code.

  • Comment on Re^2: How to alias a whole namespace to another namespace (in this case main::)

Replies are listed 'Best First'.
Re^3: How to alias a whole namespace to another namespace (in this case main::)
by data64 (Chaplain) on Nov 15, 2004 at 06:52 UTC

    Could the original required file be changed to just have the "use module" statement. So all the files that require the old file now are "use"ing the module along with the exports.


Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2021-10-27 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (94 votes). Check out past polls.

    Notices?