in reply to Re: Play golf on an array of hashrefs
in thread Play golf on an array of hashrefs
Use $_ instead, as Joost or Abigail suggested.$> perl -e '@array=({mykey=>foo}, {mykey=>bar}), @out = map{ $$elem{my +key} } @array; print @out;' $>
--
There are 10 kinds of people -- those that understand binary, and those that don't.
|
|---|