diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2001-11-19 14:26:45 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-19 14:09:34 +0000 |
commit | a801c63c4c283fdf8af1d9fbd7d3d89096ee73f6 (patch) | |
tree | c124764c6ddf3ba2f477431fccf785bcbb723b15 /pod/perldiag.pod | |
parent | a16a9fa3134789d190f80e1f78e4ef69ba73acca (diff) | |
download | perl-a801c63c4c283fdf8af1d9fbd7d3d89096ee73f6.tar.gz |
new warning "Useless use of sort in scalar context"
Message-ID: <20011119132645.A15034@rafael>
p4raw-id: //depot/perl@13094
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index a4c6543bd2..aab783103e 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3844,6 +3844,14 @@ about. (W) You did C<use re;> without any arguments. That isn't very useful. +=item Useless use of sort in scalar context + +(W void) You used sort in scalar context, as in : + + my $x = sort @y; + +This is not very useful, and perl currently optimizes this away. + =item Useless use of %s with no values (W syntax) You used the push() or unshift() function with no arguments |