You wouldn't be able to assign directly to a hash slice like you do, you'd have to iterate. If using a hash of arrays I'd always use an array as the value, even if its only one value, will help keep the code simpler. You can loop through both arrays separately or combine them
for my $name ( @names_combined ) { push @{$emails{$name}}, shift(@emails_combined); }
In reply to Re^3: Returning values from a sub routine.
by suaveant
in thread Returning values from a sub routine.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |