Data::Util::Error - Deals with class-specific error handlers in Data::Util
package Foo; use Data::Util::Error sub{ Foo::InvalidArgument->throw_error(@_) }; use Data::Util qw(:validate); sub f{ my $x_ref = array_ref shift; # Foo::InvalidArgument is thrown if invalid # ... }
Data::Util.
To install Data::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Util
CPAN shell
perl -MCPAN -e shell install Data::Util
For more information on module installation, please visit the detailed CPAN module installation guide.