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

RE: Load and unload modules ala dlopen();

by hydo (Monk)
on Oct 08, 2000 at 01:27 UTC ( #35764=note: print w/replies, xml ) Need Help??

in reply to Load and unload modules ala dlopen();

Ok. I am obviously not explaining my question correctly. I am writing a MUD in perl. The core functionality runs as a deamon. Logged into the program I need to be able to load and unload modules that are different "rooms" so to speak. Unloading the module is just as important as loading the module because I want people to be able to add sections and test thier code without having to take the whole MUD down. Here is a little pseudo code example:
my $fname = < what the user entered in as thier new room name> my $t = $fname->new(); $t->init_room( $myself ); # do some stuff to the room. free( $t ) # hehehe... ok well something like this anyway.
It needs to be able to do this many, many times without eating up memory every time. Hopefully, this makes more sense.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-09-26 06:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found