my @keys = qw/ one two three /; foreach (@keys) { print ${{do{ local @_ = (@keys => 1 .. 3); map { $_[$_] => $_[$_+@keys] } 0 .. $#keys }}}{$_},"\n"; }
Makeshifts last the longest.
In reply to Re: Defining an anonymous hash with slices and lists.
by Aristotle
in thread Defining an anonymous hash with slices and lists.
by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |