Here are a couple of techniques you can use:
my %employees = map {$_ => undef} qw(key1 key2 key3); @employees{qw(key1 key2 key3)} = undef;
In reply to Re: Assigning values to undef hash reference keys two or more at a time
by GrandFather
in thread Assigning values to undef hash reference keys two or more at a time
by gctaylor1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |