The two additional lines request from perl to catch various common problems in your code. They check different things so you need both. A potential problem caught by use strict; will cause your code to stop immediately when it is encountered, while use warnings; will merely give a warning (like the command-line switch -w) and let your code run. To read more about them check their respective manual pages at strict and warnings.
+
The two additional lines request from perl to catch various common problems in your code. They check different things so you need both. A potential problem caught by '''use strict;''' will cause your code to stop immediately when it is encountered, while '''use warnings;''' will merely give a warning (like the command-line switch -w) and let your code run. To read more about them check their respective manual pages at [http://perldoc.perl.org/strict.html strict] and [http://perldoc.perl.org/warnings.html warnings].