Bug#620571: say how to sort an array without Useless use of sort in void context for dummies

jidanni at jidanni.org jidanni at jidanni.org
Sat Apr 2 11:57:40 UTC 2011


Package: perl-doc
Version: 5.10.1-19
Severity: wishlist

$ perldoc -f sort
       sort SUBNAME LIST
       sort BLOCK LIST
       sort LIST
               In list context, this sorts the LIST... (and returns the sorted list value...)

Add some words to make it super clear that
  sort @array;
will just get one
  Useless use of sort in void context,
and one must do
  @array=sort @array;
do accomplish that.






More information about the Perl-maintainers mailing list