should do what I want, but @myvalues is an auxiliary variable I do not want to introduce.foreach $elem (@array) { push @myvalues, $$elem{"mykey"}; }
In reply to Play golf on an array of hashrefs by very empty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |