Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2015-11-26 07:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls