summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2010-12-09 14:48:25 -0500
committerJesse Vincent <jesse@bestpractical.com>2010-12-09 15:50:52 -0500
commit4f7b12953fa23d3b88826a080aeb30262d2e7886 (patch)
treea8b26ccb77dd5fbdbe36d3808f89d7a3c84cc4c2
parent80f78a716c4ffd9e5c37ebecec28c544e3af2c3f (diff)
downloadperl-4f7b12953fa23d3b88826a080aeb30262d2e7886.tar.gz
Added a statement about the examples in perl's documentation
-rw-r--r--pod/perlintro.pod18
1 files changed, 18 insertions, 0 deletions
diff --git a/pod/perlintro.pod b/pod/perlintro.pod
index c47274bc64..4472d9fbf9 100644
--- a/pod/perlintro.pod
+++ b/pod/perlintro.pod
@@ -22,6 +22,24 @@ Throughout this document you'll see references to other parts of the
Perl documentation. You can read that documentation using the C<perldoc>
command or whatever method you're using to read this document.
+Many of the examples in the documentation are code fragments,
+not complete programs, intended to help understand the discussed
+features. They may reflect the style and preference of the author of
+that piece of the documentation, and may be brever than a corresponding
+line of code in a real program. It's usually taken for granted that
+strict and warnings have been enabled, and that used variables have
+been declared without explicitely stating this in each fragment.
+
+Do note that the examples have been written over a period of more than a
+dozen years, and that a large range of authors have contributed. Styles
+and techniques will therefore differ, although some effort has been made
+to not vary styles too widely in the same sections. Do not consider one
+style to be better than others - "There Is More Than One Way Of Doing
+It" is one of Perls mottos. After all, in your journey as a programmer,
+you are likely to encounter different styles.
+
+
+
=head2 What is Perl?
Perl is a general-purpose programming language originally developed for