NAME
NGS::Tools::BAMSurgeon::Helper - A convenience module for importing general perl usefulness
SYNOPSIS
use NGS::Tools::BAMSurgeon::Helper;
# We are now using strict, warnings, Carp, File::ShareDir, File::pushd, MooseX::Params::Validate
# You also have access to the following functions:
# Like print, but includes a newline automatically
say("Hello!");
# both of these pretty print variable contents, even if they are arrays, hashes, nested, etc.
# (formatted printing via Data::Dump)
pretty_print(\@my_array);
# [2, 3, { 5 => 7 }]
dump(\@my_array);
# [2, 3, { 5 => 7 }]
# This lists all loaded modules, their versions, and the path they're loaded from
show_modules();
# "NGS::Tools::BAMSurgeon::Helper" => [
# "0.1.0",
# "/u/me/lib/NGS/Tools/BAMSurgeon/Helper.pm",
# ],
# "Carp" => [
# 1.32,
# "/sw/perl/lib/site_perl/5.18.1/Carp.pm",
# ],
# ...
# This lists @INC, the search path for modules, in a nice format
show_inc();
# [
# "/u/me/repos/modulename/blib/lib",
# ".",
# ...
# ]