Exodist::Util - Exodist's collection of utility functions
Collection of utility functions. This module ties together several components into a single module to import. Importing this module is like importing all the modules listed in the 'SUBMODULES' section.
Using the module will import all the default exports from all submodules. You may also list what you want imported.
The example below imports blessed() from Scalar::Util, shuffle() from List::Util, and alias() from Exodist::Util::Alias all at once.
use Exodist::Util qw/ blessed shuffle alias ... /; alias 'My::Long::Class::Name::ToDoThing'; my $type = blessed( $obj ); my ($random) = shuffle(@list); my $tdt = ToDoThing->new();
This module rolls all the following into one.
The defacto standard for list functions.
The defacto standard for Scalar functions.
Tools for injecting, finding, or mapping subroutines in a given package.
Aliasing tools that do not require a 'use' or BEGIN { ...->import } each time they are used.
Tools for creating both ultra-minimal accessors, and highly specialized accessors.
Use the minimal if you don't need anything fancy and don't want a Moose memory footprint. The highly specialsed are not covered by Moose and would likely be very verbose to define in Moose.
Useful for shortening plugin package names while allowing plugins outside the plugin namespace. Check for package as-is, then check for package nested in a specific namespace.
Enhance existing subs or define new subs as enhanced. Enhanced subs can be directly queried for information such as start/end lines, etc.
Chad Granum exodist7@gmail.com
Copyright (C) 2010 Chad Granum
Exodist-Util is free software; Standard perl licence.
Exodist-Util is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
To install Exodist::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Exodist::Util
CPAN shell
perl -MCPAN -e shell install Exodist::Util
For more information on module installation, please visit the detailed CPAN module installation guide.