qbit - Setup envirement to development modern perl applications and add some functions.
Using this pragma is equivalent:
use strict; use warnings FATAL => 'all'; use utf8; use open qw(:std utf8); use Scalar::Util qw(set_prototype blessed dualvar isweak readonly refaddr reftype tainted weaken isvstring looks_like_number); use Data::Dumper qw(Dumper); use Clone qw(clone); use qbit::Exceptions; use qbit::Log; use qbit::Array; use qbit::Hash; use qbit::GetText; use qbit::Packages; use qbit::StringUtils; use qbit::Date; use qbit::File;
use qbit; sub myfunc { my ($a1, $a2) = @_; throw Exception::BadArguments gettext('First argument must be defined') unless defined($a1); return .... } try { my $data = myfunc(@ARGV); ldump($data); } catch Exception::BadArguments with { l shift->as_string(); };
To install qbit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm qbit
CPAN shell
perl -MCPAN -e shell install qbit
For more information on module installation, please visit the detailed CPAN module installation guide.