From: Rafael Garcia-Suarez Date: Wed, 12 Nov 2008 15:14:19 +0000 (+0000) Subject: Some deprecated warnings were also in the syntax category X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83ce3e12e086bc5a21f37af9378b7c01fa5d73d8;p=p5sagit%2Fp5-mst-13.2.git Some deprecated warnings were also in the syntax category (one of them was spotted by Abigail.) Plus, document the undocumented warning "Use of comma-less variable list is deprecated" p4raw-id: //depot/perl@34825 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 14f1368..9d4d3c1 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4677,8 +4677,13 @@ returns no useful value. See L. =item Use of bare << to mean <<"" is deprecated -(D deprecated) You are now encouraged to use the explicitly quoted form -if you wish to use an empty line as the terminator of the here-document. +(D deprecated, W syntax) You are now encouraged to use the explicitly quoted +form if you wish to use an empty line as the terminator of the here-document. + +=item Use of comma-less variable list is deprecated + +(D deprecated, W syntax) The values you give to a format should be +separated by commas, not just aligned on a line. =item Use of chdir('') or chdir(undef) as chdir() deprecated @@ -4727,8 +4732,8 @@ repeatedly, the C has no effect. =item Use of implicit split to @_ is deprecated -(D deprecated) 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 +(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