azmike has asked for the wisdom of the Perl Monks concerning the following question:
My (most likely incorrect) assumption was that the net effect of this was to execute my code then "$self->SUPER::loop(@args);" would return control to the main loop. However The print statement is only executed once. Yet the chat server continues to run.sub loop { my ($self, @args) = @_; # sleep 1; print STDERR "Execute my code here...?\n"; $self->SUPER::loop(@args); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use Net::Server
by ikegami (Patriarch) on Oct 23, 2008 at 18:58 UTC | |
|
Re: How to use Net::Server
by ikegami (Patriarch) on Oct 23, 2008 at 19:24 UTC | |
by azmike (Initiate) on Oct 23, 2008 at 19:43 UTC |