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

RE: Load and unload modules ala dlopen();

by hydo (Monk)
on Oct 08, 2000 at 01:27 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found