|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Why does 'keys' need a named hash?by pme (Monsignor) |
| on Apr 05, 2017 at 12:12 UTC ( [id://1187098]=note: print w/replies, xml ) | Need Help?? |
|
Hi ankitpati,
returns list having even number of elements. 'keys' works only on hashes. In your working example %hash is initialized with the list returned by 'map' and then 'keys' can do the job on %hash. HTH
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||