Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Dynamically Changing Your Namespace

by phaylon (Curate)
on Mar 31, 2007 at 16:35 UTC ( #607633=note: print w/ replies, xml ) Need Help??


in reply to Dynamically Changing Your Namespace

This could work easily if there were a non-scoping (read: unhygienic) version of eval. Then it would be just a

if ($foo) { unhygienic_eval "package $foo"; sub bar { 23 } }

But I have no experience with the perl guts and expect this to be much more work than it looks like.


Ordinary morality is for ordinary people. -- Aleister Crowley


Comment on Re: Dynamically Changing Your Namespace
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2015-07-06 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls