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.
In reply to Re^2: multi thread problem in an simple HTTP server
by Corion
in thread multi thread problem in an simple HTTP server
by bravesoul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |