Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

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 avoiding work at the Monastery: (4)
As of 2016-10-24 00:52 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.