Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > a14df3f501f21a620f2d8b3905338142

perl-List-UtilsBy-0.120.0-1.mga9.src.rpm

Description:

This module provides a number of list utility functions, all of which take
an initial code block to control their behaviour. They are variations on
similar core perl or 'List::Util' functions of similar names, but which use
the block to control their behaviour. For example, the core Perl function
'sort' takes a list of values and returns them, sorted into order by their
string value. The 'sort_by' function sorts them according to the string
value returned by the extra function, when given each value.

my @names_sorted = sort @names;

my @people_sorted = sort_by { $_->name } @people;

Generated packages:

Other version of this rpm: