Were you meaning something like this?
my @arr; map { push( @arr, ( ( "$_" ) x $hash{$_} ) ) } keys %hash;
In reply to Re: Pushing Element Multiple Times to Array
by perlchanter
in thread Pushing Element Multiple Times to Array
by atancasis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |