summaryrefslogtreecommitdiffhomepage
path: root/perl.html.markdown
diff options
context:
space:
mode:
authorDan Book <grinnz@gmail.com>2015-12-13 19:22:29 -0500
committerDan Book <grinnz@gmail.com>2015-12-13 19:22:29 -0500
commit35b3c490ce06fb94b8b51bd7f5ceb1638401fb1a (patch)
tree59fbdf105945fafa039d86f40799fc465ba4d8bf /perl.html.markdown
parent0b8a0526249264c7ac34069adf3159f2b72771a8 (diff)
Add blurb about strict and warnings
Diffstat (limited to 'perl.html.markdown')
-rw-r--r--perl.html.markdown10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl.html.markdown b/perl.html.markdown
index 85f3974e..ab71a6ab 100644
--- a/perl.html.markdown
+++ b/perl.html.markdown
@@ -15,6 +15,16 @@ Perl 5 runs on over 100 platforms from portables to mainframes and is suitable f
```perl
# Single line comments start with a number sign.
+#### Strict and warnings
+
+use strict;
+use warnings;
+
+# All perl scripts and modules should include these lines. Strict causes
+# compilation to fail in cases like misspelled variable names, and warnings
+# will print warning messages in case of common pitfalls like concatenating
+# to an undefined value.
+
#### Perl variable types
# Variables begin with a sigil, which is a symbol showing the type.