Datahub::Factory::Sane - Package boilerplate
use Datahub::Factory::Sane; # Provides all the 5.10 features. say("what"); given($foo) { when(1) { say "1" } when([2,3]) { say "2 or 3" } when(/abc/) { say "has abc" } default { none of the above } } sub next_id{ state $id; ++$id; } # Provides try/catch[/finally] try/catch_case[/finally] try { } catch {};
Package boilerplate equivalent to:
use strict; use warnings; use feature qw(:5.10); use utf8; use IO::File (); use IO::Handle (); use Try::Tiny::ByClass;
To install Datahub::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory
CPAN shell
perl -MCPAN -e shell install Datahub::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.