Strict is there to protect you from silly programming errors, and to enforce good practice. Writing perl without strict is like operating a Chainsaw with the safety guards removed. It might be a bit faster but sooner or later you will come to regret it.
My advice is to get used to programming with strict, and to avoid the use of global variables. (Which are a problem with mod_perl in any case). How hard is it to wrap your main code in a function and declare variables as local to that function?
Just write:
#!perl sub main { my $variable = 42; my $result = library_call($variable); # more code } # other subroutines. exit main();
In reply to Re: Strict scripts
by chrestomanci
in thread Strict scripts
by AlfaProject
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |