P is for Practical | |
PerlMonks |
Re: Re: Play golf on an array of hashrefsby mephit (Scribe) |
on Jun 10, 2002 at 21:37 UTC ( [id://173312]=note: print w/replies, xml ) | Need Help?? |
Actually, the use of $elem in the map won't work, as the OP used $elem as the "alias" variable in the foreach loop. There is no alias in this map.
Use $_ instead, as Joost or Abigail suggested. -- There are 10 kinds of people -- those that understand binary, and those that don't.
In Section
Seekers of Perl Wisdom
|
|