X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperltrap.pod;h=c59ecc4dafabcf8beec1411a787c1ce9f7026717;hb=6940069f6d5beebb5f66572e358b4e7d0c3d1c43;hp=e528254e0e1c5e37dcca08bba3fff1580730e686;hpb=c47ff5f1a1ef5d0daccf1724400a446cd8e93573;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perltrap.pod b/pod/perltrap.pod index e528254..c59ecc4 100644 --- a/pod/perltrap.pod +++ b/pod/perltrap.pod @@ -172,12 +172,6 @@ Variables begin with "$", "@" or "%" in Perl. =item * -C does not implement the "*" format for interpolating -field widths, but it's trivial to use interpolation of double-quoted -strings to achieve the same effect. - -=item * - Comments begin with "#", not "/*". =item * @@ -392,8 +386,9 @@ Everything else. =back If you find an example of a conversion trap that is not listed here, -please submit it to Bill Middleton > for inclusion. -Also note that at least some of these can be caught with B<-w>. +please submit it to > for inclusion. +Also note that at least some of these can be caught with the +C pragma or the B<-w> switch. =head2 Discontinuance, Deprecation, and BugFix traps @@ -591,6 +586,12 @@ Some error messages will be different. =item * Discontinuance +In Perl 4, if in list context the delimiters to the first argument of +C were C, the result would be placed in C<@_> as well as +being returned. Perl 5 has more respect for your subroutine arguments. + +=item * Discontinuance + Some bugs may have been inadvertently removed. :-) =back @@ -1301,7 +1302,8 @@ within certain expressions, statements, contexts, or whatever. print "To: someone@somewhere.com\n"; # perl4 prints: To:someone@somewhere.com - # perl5 errors : In string, @somewhere now must be written as \@somewhere + # perl < 5.6.1, error : In string, @somewhere now must be written as \@somewhere + # perl >= 5.6.1, warning : Possible unintended interpolation of @somewhere in string =item * Interpolation