in reply to Testing legacy CGI scripts using the "main() unless caller()" technique
BTW, You might notice my pm files usually end with the following line:
__PACKAGE__
It's a true value (I don't use 0.pm), but more importantly, there's no semicolon after it. If you try adding another sub or anything else below it, you'll get a syntax error. (I do the same thing with return). Your taste might be different.
|
|---|