An example for the lazy folks out there, that demonstrates (for beginners) why warnings would be useful in addition to strict.
using strict only
use strict;
my $string = 'hello world';
print substr($string,'O',5)."\n";
Output doesn't really scream don't use the letter O:
perl absurd.pl
hello
using strict and warnings
use strict;
use warnings;
my $string = 'hello world';
print substr($string,'O',5)."\n";
Useful output with some notes on what should be a number and isn't:
perl absurd.pl
Argument "O" isn't numeric in substr at absurd.pl line 4.
hello