in reply to Re^3: Can this script be Optimized?
in thread Can this script be Optimized?

Beginning with List::Util 1.28, List::Util added a great deal of new functions. However, the version of List::Util included in the Perl 5.18.x releases is 1.27. (And perldoc.perl.org only includes documentation for modules bundled with stable releases of Perl.)

The new functions are:

I don't know what version of List::Util will be bundled with Perl 5.20.0, but it's likely to be at least 1.38. Of course, you don't need to wait for Perl 5.20.0 to use these functions; List::Util 1.38 is already on CPAN.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^5: Can this script be Optimized?
by kcott (Archbishop) on May 01, 2014 at 23:44 UTC

    Thanks for tracking down all that info. It would appear my concerns about perldoc.perl.org not being up-to-date are unfounded.

    "Of course, you don't need to wait for Perl 5.20.0 to use these functions; List::Util 1.38 is already on CPAN."

    Actually, I don't have to wait or, indeed, do anything at all. :-)

    As stated above:

    "... my versions: List::Util 1.38 and Perl 5.18.1"

    I didn't (deliberately) install List::Util 1.38, so it must have been a dependency of some other module I installed via cpan.

    -- Ken