go ahead... be a heretic | |
PerlMonks |
Re^4: Common hash keysby tinita (Parson) |
on Jun 08, 2008 at 12:11 UTC ( [id://690916]=note: print w/replies, xml ) | Need Help?? |
List::Util::first() returns the result of the code block, in this case the boolean return of the exists function.i think it returns the key it's iterating over, just like grep works. from the docs: "first returns the first element where the result from BLOCK is a true value." prints nothing.
In Section
Seekers of Perl Wisdom
|
|