Philip Potter wrote: > I am playing with List::MoreUtils::pairwise and noticed some funny > behaviour. > p...@tui:~/tmp$ cat bar.pl > use strict; > use warnings; > > use List::MoreUtils qw(pairwise); > use Data::Dumper; > > my @aoh_a = ( { foo => 1, bar => 2 }, {foo => 3, bar => 4} ); > my @aoh_b = ( { fred => 5, jim => 23}, {fred => 1089, jim => 1729} ); > > my @aoh = pairwise { { %{$a}, %{$b} } } @aoh_a, @aoh_b;
no warnings 'once'; my @aoh = pairwise { +{ %{$a}, %{$b} } } @aoh_a, @aoh_b; > > print Dumper(\...@aoh); -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/