X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperltrap.pod;h=321c86dd7f018d1279c0647f406ea9965e0d9608;hb=19799a22062ef658e4ac543ea06fa9193323512a;hp=852d8e98263e686c0ecc116c0d12fd151edd52cb;hpb=d92eb7b0e84a41728b3fbb642691f159dbe28882;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perltrap.pod b/pod/perltrap.pod index 852d8e9..321c86d 100644 --- a/pod/perltrap.pod +++ b/pod/perltrap.pod @@ -22,7 +22,7 @@ The English module, loaded via use English; allows you to refer to special variables (like C<$/>) with names (like -C<$RS>), as though they were in B; see L for details. +$RS), as though they were in B; see L for details. =item * @@ -160,7 +160,7 @@ You must use C rather than C. The C and C keywords from C become in Perl C and C, respectively. -Unlike in C, these do I work within a C construct. +Unlike in C, these do I work within a C construct. =item * @@ -305,7 +305,7 @@ file read is the sole condition in a while loop: =item * -Remember not to use "C<=>" when you need "C<=~>"; +Remember not to use C<=> when you need C<=~>; these two constructs are quite different: $x = /foo/; @@ -1056,7 +1056,7 @@ All types of RE traps. =item * Regular Expression C now does no interpolation on either side. It used to -interpolate C<$lhs> but not C<$rhs>. (And still does not match a literal +interpolate $lhs but not $rhs. (And still does not match a literal '$' in string) $a=1;$b=2; @@ -1095,7 +1095,7 @@ the very first time in any such closure. For instance, if you say } build_match() will always return a sub which matches the contents of -C<$left> and C<$right> as they were the I time that build_match() +$left and $right as they were the I time that build_match() was called, not as they are in the current call. This is probably a bug, and may change in future versions of Perl. @@ -1327,7 +1327,7 @@ Note that you can C to ward off such trappiness under perl5. =item * Interpolation The construct "this is $$x" used to interpolate the pid at that -point, but now apparently tries to dereference C<$x>. C<$$> by itself still +point, but now apparently tries to dereference $x. C<$$> by itself still works fine, however. print "this is $$x\n";