I know this is a pretty stupid question, maybe, but is it better to
use strict? I have never gotten a concise answer to this question
because there reallty isn't any docs on it.
thanks,
-ro9bin
There are a number of good reasons to use strict, however, in my case
I use it to help in de-bugging and all other side benefits are a
bonus.
90% of my errors are misspelt variables, IE, somwhere you have
# my $blah;
and later you use $blaj by mistake, it will tell you in its own
fashion that $blaj is perhaps a mistake.
Try this program to get get a message that would not be generated if
'use strict' was not used;
=========================
#!/usr/bin/perl
use strict;
my $blah;
$blaj =2;
========================
You should also 'use warnings' as well. They all help
Owen