summaryrefslogtreecommitdiff
path: root/pod/perltrap.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perltrap.pod')
-rw-r--r--pod/perltrap.pod18
1 files changed, 11 insertions, 7 deletions
diff --git a/pod/perltrap.pod b/pod/perltrap.pod
index cfe964270c..79e3ae5ca9 100644
--- a/pod/perltrap.pod
+++ b/pod/perltrap.pod
@@ -4,13 +4,9 @@ perltrap - Perl traps for the unwary
=head1 DESCRIPTION
-The biggest trap of all is forgetting to use the B<-w> switch;
-see L<perlrun>. Making your entire program runnable under
-
- use strict;
-
-can help make your program more bullet-proof, but sometimes
-it's too annoying for quick throw-away programs.
+The biggest trap of all is forgetting to use the B<-w> switch; see
+L<perlrun>. The second biggest trap is not making your entire program
+runnable under C<use strict>.
=head2 Awk Traps
@@ -361,6 +357,14 @@ for $_ itself (and @_, etc.).
=item *
+Double-colon is now a valid package separator in an identifier. Thus these
+behave differently in perl4 vs. perl5:
+
+ print "$a::$b::$c\n";
+ print "$var::abc::xyz\n";
+
+=item *
+
C<s'$lhs'$rhs'> now does no interpolation on either side. It used to
interpolate C<$lhs> but not C<$rhs>.