List::Pairwise

List::Pairwise is a Perl module with map/grep arrays and hashes pairwise.
Download

List::Pairwise Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Thomas Drugeon
  • Publisher web site:
  • http://search.cpan.org/~tdrugeon/List-Pairwise-0.27/lib/List/Pairwise.pod

List::Pairwise Tags


List::Pairwise Description

List::Pairwise is a Perl module with map/grep arrays and hashes pairwise. List::Pairwise is a Perl module with map/grep arrays and hashes pairwise.SYNOPSIS use List::Pairwise qw(:all); my %a = ( snoogy1 => 4, snoogy2 => 2, NOT => 4, snoogy3 => 5, hehe => 12, ); # keys/values emulation (only slower) my @keys = mapp {$a} %a; my @values = mapp {$b} %a; # reverse hash (does not work in-place) my %reverse_a = mapp {$b, $a} %a; # reverse array pairs in-place my @a = %a; mapp { ($a, $b) = ($b, $a) } @a; # modify values in-place mapp {$b++} %a; # modify keys (does not work in-place) my %b = mapp {lc($a) => $b} %a; # grep hash subset my %subset1 = grepp {$a =~ /snoogy/} %a; my %subset2 = grepp {$b < 5} %a; # grep some specific values my @snoog_values = mapp {$b} grepp {$a =~ /snoogy/} %a; # This does not work: # values grepp {$a =~ /snoogy/} %a; # values() expects a real hashRequirements:· Perl Requirements: · Perl


List::Pairwise Related Software