This should do what your code does, but your code doesn't seem to match exactly your description (and it has an unnecessary assignment)...my @arr=map {$_, "=>$list{$_}"} keys %list;
In reply to Re: use of 'map'
by blazar
in thread use of 'map'
by Madam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |