January 2002
Beginner
480 pages
13h 15m
English
The cleanup() function is called if an attempt is made to
shut the script down. It unties the registration
hash, ensuring no data is lost, and disconnects from the Jabber server:
sub cleanup {
debug("cleaning up");
untie %reg;
$c->disconnect;
exit;
}Read now
Unlock full access