Please try this
#!/usr/bin/perl -- package MyModule; use Devel::Peek; sub new { my $obj = bless { '$$' => $$ }, shift; print "## $$ IN NEW $obj ##\n"; return $obj; } sub DESTROY { print "#### BEGIN DESTROY: $$ : @_ ####\n"; print Dump( @_ ); print "###### END DESTROY: $$ : @_ ######\n"; } 1; package MyServer; use parent qw[ Net::Server::PreFork ]; our $hardtodestroy = MyModule->new; sub child_finish_hook { undef $hardtodestroy; } 1; package main; STDOUT->autoflush(1); print "## this is perl $]\n"; MyServer->run( max_servers => 1, min_servers => 1, min_spare_servers => 0, max_spare_servers => 0 );
In reply to Re^7: Is this absurd, or have I not RTFM?
by Anonymous Monk
in thread Is this absurd, or have I not RTFM?
by petermogensen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |