Array::UtilsArray::Utils module contains small utils for array manipulation. | |
Download |
Array::Utils Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sergei A. Fedorov
- Publisher web site:
- http://search.cpan.org/~zmij/Array-Utils-0.3/Utils.pm
Array::Utils Tags
Array::Utils Description
Array::Utils module contains small utils for array manipulation. Array::Utils module contains small utils for array manipulation.SYNOPSIS use Array::Utils qw(:all); my @a = qw( a b c d ); my @b = qw( c d e f ); # symmetric difference my @diff = array_diff(@a, @b); # intersection my @isect = intersect(@a, @b); # unique union my @unique = unique(@a, @b); # check if arrays contain same members if ( !array_diff(@a, @b) ) { # do something }FUNCTIONSuniqueReturns an array of unique items in the arguments list.intersectReturns an intersection of two arrays passed as arguments.array_diffReturn symmetric difference of two arrays passed as arguments Requirements: · Perl
Array::Utils Related Software