Bio::Gonzales::Util - Utility functions for common tasks
use Bio::Gonzales::Util qw(undef_slice slice invslice flatten hash_merge as_arrayref);
return a new hash with all keys removed that are not in @keys_to_slice.
@keys_to_slice
same as slice, but if a key in @keys_to_slice does not exist in %hash, it will result in a additional entry with its value undefined
%hash
my %hash = ( a => 1, b => 2, c => 3 ); my %sliced_hash = undef_slice(\%hash, qw/a b d/); # will result in %sliced_hash = ( a => 1, b => 2, d => undef );
jw bargsten, <joachim.bargsten at wur.nl>
<joachim.bargsten at wur.nl>
To install Bio::Gonzales, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Gonzales
CPAN shell
perl -MCPAN -e shell install Bio::Gonzales
For more information on module installation, please visit the detailed CPAN module installation guide.