summaryrefslogtreecommitdiff
path: root/pod/perltrap.pod
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2003-05-13 11:33:05 -0700
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-07-11 18:54:09 +0000
commit6014d0cb2904bf89033c6aa0d3dbb1d1600d6994 (patch)
tree506b2b283a48cddee7fa8dc08ef97f0f3039b063 /pod/perltrap.pod
parent103dd89994b01bc194bfaf186624c2fb15f80afe (diff)
downloadperl-6014d0cb2904bf89033c6aa0d3dbb1d1600d6994.tar.gz
New introduction
Message-ID: <20030514013305.GB22001@windhund.schwern.org> p4raw-id: //depot/perl@20154
Diffstat (limited to 'pod/perltrap.pod')
-rw-r--r--pod/perltrap.pod14
1 files changed, 13 insertions, 1 deletions
diff --git a/pod/perltrap.pod b/pod/perltrap.pod
index 6a6a443568..d8f667c736 100644
--- a/pod/perltrap.pod
+++ b/pod/perltrap.pod
@@ -18,6 +18,11 @@ Accustomed B<awk> users should take special note of the following:
=item *
+A Perl program executes only once, not once for each input line. You can
+do an implicit loop with C<-n> or C<-p>.
+
+=item *
+
The English module, loaded via
use English;
@@ -174,7 +179,9 @@ Variables begin with "$", "@" or "%" in Perl.
=item *
-Comments begin with "#", not "/*".
+Comments begin with "#", not "/*" or "//". Perl may interpret C/C++
+comments as division operators, unterminated regular expressions or
+the defined-or operator.
=item *
@@ -206,6 +213,11 @@ Seasoned B<sed> programmers should take note of the following:
=item *
+A Perl program executes only once, not once for each input line. You can
+do an implicit loop with C<-n> or C<-p>.
+
+=item *
+
Backreferences in substitutions use "$" rather than "\".
=item *