PerlX::Underscore - Common helper functions without having to import them
version v0.1.0
use PerlX::Underscore; _::croak "$foo must do Some::Role" if not _::does($foo, 'Some::Role');
This module contains various utility functions, and makes them accessible through the _ package. This allows the use of these utilities (a) without much per-usage overhead and (b) without namespace pollution.
_
It contains functions from the following modules:
Scalar::Util
List::Util
List::MoreUtils
Carp
Safe::Isa, which contains convenience functions for UNIVERSAL
Not all functions from those are available, and some have been renamed.
wrapper for Scalar::Util::blessed
Scalar::Util::blessed
wrapper for Scalar::Util::refaddr
Scalar::Util::refaddr
wrapper for Scalar::Util::reftype
Scalar::Util::reftype
wrapper for Scalar::Util::weaken
Scalar::Util::weaken
wrapper for Scalar::Util::unweaken
Scalar::Util::unweaken
wrapper for Scalar::Util::isweak
Scalar::Util::isweak
wrapper for List::Util::reduce
List::Util::reduce
wrapper for List::Util::any
List::Util::any
wrapper for List::Util::all
List::Util::all
wrapper for List::Util::none
List::Util::none
wrapper for List::MoreUtils::first_value
List::MoreUtils::first_value
wrapper for List::MoreUtils::first_index
List::MoreUtils::first_index
wrapper for List::MoreUtils::last_value
List::MoreUtils::last_value
wrapper for List::MoreUtils::last_index
List::MoreUtils::last_index
wrappers for List::Util::max and List::Util::maxstr, respectively.
List::Util::max
List::Util::maxstr
wrappers for List::Util::min and List::Util::minstr, respectively.
List::Util::min
List::Util::minstr
wrapper for List::Util::sum
List::Util::sum
wrapper for List::Util::product
List::Util::product
wrapper for List::Util::pairgrep
List::Util::pairgrep
wrapper for List::Util::pairfirst
List::Util::pairfirst
wrapper for List::Util::pairmap
List::Util::pairmap
wrapper for List::Util::shuffle
List::Util::shuffle
wrapper for List::MoreUtils::natatime
List::MoreUtils::natatime
wrapper for List::MoreUtils::zip
List::MoreUtils::zip
wrapper for List::MoreUtils::uniq
List::MoreUtils::uniq
wrapper for List::MoreUtils::part
List::MoreUtils::part
wrapper for Carp::carp
Carp::carp
wrapper for Carp::cluck
Carp::cluck
wrapper for Carp::croak
Carp::croak
wrapper for Carp::confess
Carp::confess
...and other goodies from Safe::Isa
Safe::Isa
wrapper for $Safe::Isa::_isa
$Safe::Isa::_isa
wrapper for $Safe::Isa::_can
$Safe::Isa::_can
wrapper for $Safe::Isa::_DOES
$Safe::Isa::_DOES
wrapper for $Safe::Isa::_call_if_object
$Safe::Isa::_call_if_object
Please report any bugs or feature requests on the bugtracker website https://github.com/latk/Underscore/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Lukas Atkinson <amon@cpan.org>
This software is Copyright (c) 2014 by Lukas Atkinson.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install PerlX::Underscore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlX::Underscore
CPAN shell
perl -MCPAN -e shell install PerlX::Underscore
For more information on module installation, please visit the detailed CPAN module installation guide.