Now, what this does is assign undef to $hash{4} and $hash{5}. Is there a nice way I can do something like:my @keys = (1 .. 5); my @values = (6 .. 8); my %hash; @hash{@keys} = @values;
That doesn't work, but that's what I'm trying to do ...@hash{@keys} = @values || '';
In reply to Hash slices and too many keys by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |