in reply to Re^6: Is this absurd, or have I not RTFM?
in thread Is this absurd, or have I not RTFM?
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 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Is this absurd, or have I not RTFM?
by petermogensen (Sexton) on May 19, 2014 at 10:03 UTC | |
by salva (Canon) on May 19, 2014 at 10:18 UTC | |
by Anonymous Monk on May 19, 2014 at 10:07 UTC | |
by petermogensen (Sexton) on May 19, 2014 at 10:20 UTC | |
by Anonymous Monk on May 19, 2014 at 10:15 UTC | |
by petermogensen (Sexton) on May 19, 2014 at 10:25 UTC | |
by Anonymous Monk on May 19, 2014 at 10:28 UTC |