Work with the hash more directly:
use Data::Dumper; my $p = {}; @$p{qw(fee fie foe)} = 1 ..3; print Dumper($p);
HTH
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: Syntax for slice of a referenced hash
by arturo
in thread Syntax for slice of a referenced hash
by domo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |