in reply to Re: multi thread problem in an simple HTTP server
in thread multi thread problem in an simple HTTP server
A small niggle. I guess that for compatibility reasons, there are special names for subroutines that make them get called implicitly:
> perl -le "sub BEGIN { print shift }; sub END { print shift }" Hello +World
outputs
Hello World
I've used this trick when writing a module for a version of Perl that didn't understand CHECK or INIT blocks (5.04_03 or something like that). I declared these blocks as subroutines and then had another subroutine to execute them if the Perl version was too low.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: multi thread problem in an simple HTTP server
by BrowserUk (Patriarch) on Apr 09, 2009 at 12:12 UTC |