in reply to Re^2: Search Script
in thread Search Script
at the top of your scripts -- what these will do is enforce (or warn) about certain things that will save you lots of trouble in the long-run, and point out compiling problems. Check out the manpages for each ("man strict", "man warnings") for more details. Something it is especially useful for is enforcing variable declarations:use strict; use warnings;
This code, however, will give a very informative error message if you try to run it:$myvariable = 3; print "Pi is exactly $myvaraible";
use strict; my $myvariable = 3; print "Pi is exactly $myvaraible";
|
|---|