X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldiag.pod;h=1f7bc0bc8ede2f0de83cea83e25a0ccf8e841119;hb=c1effa61278e47c916466883d74905b04fedc388;hp=f3efab5a44afa19fdb2cedfe60e75d60cec136f8;hpb=259976bd437d48ed8a7515936ba3d5116b7a0bd8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldiag.pod b/pod/perldiag.pod index f3efab5..1f7bc0b 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -316,7 +316,7 @@ release of Perl 5. =item Attribute "unique" is deprecated (D deprecated) You have used the attributes pragam to modify the "unique" -attribute on a array, hash or scalar reference. The :unique attribute has +attribute on an array, hash or scalar reference. The :unique attribute has had no effect since Perl 5.8.8, and will be removed in the next major release of Perl 5. @@ -1147,6 +1147,11 @@ that is already inside a group with a byte-order modifier. For example you cannot force little-endianness on a type that is inside a big-endian group. +=item Can't use keyword '%s' as a label + +(F) You attempted to use a reserved keyword, such as C or C, +as a statement label. This is disallowed since Perl 5.11.0. + =item Can't use "my %s" in sort comparison (F) The global variables $a and $b are reserved for sort comparisons. @@ -4196,8 +4201,15 @@ system call to call, silly dilly. =item Too late for "-%s" option (X) The #! line (or local equivalent) in a Perl script contains the -B<-M>, B<-m> or B<-C> option. This is an error because those options -are not intended for use inside scripts. Use the C pragma instead. +B<-M>, B<-m> or B<-C> option. + +In the case of B<-M> and B<-m>, this is an error because those options are +not intended for use inside scripts. Use the C pragma instead. + +The B<-C> option only works if it is specified on the command line as well +(with the same sequence of letters or numbers following). Either specify +this option on the command line, or, if your system supports it, make your +script executable and run it directly instead of passing it to perl. =item Too late to run %s block @@ -4730,12 +4742,6 @@ to access the filehandle slot within a typeglob. operator. Since C always tries to match the pattern repeatedly, the C has no effect. -=item Use of implicit split to @_ is deprecated - -(D deprecated, W syntax) It makes a lot of work for the compiler when you -clobber a subroutine's argument list, so it's better if you assign the results -of a split() explicitly to an array (or list). - =item Use of inherited AUTOLOAD for non-method %s() is deprecated (D deprecated) As an (ahem) accidental feature, C subroutines