laziness, impatience, and hubris | |
PerlMonks |
Re^3: Effecicncy of key-only hashby moritz (Cardinal) |
on Aug 24, 2008 at 08:48 UTC ( [id://706515]=note: print w/replies, xml ) | Need Help?? |
The @ tells you that what you expect to return is an array, and the curly braces {...} tell you that what you access is a hash.
qw(shave the modern way) is a list, so @hash{qw(shave the modern way)} is a list ("slice") of items in %hash with the listed keys.
In Section
Seekers of Perl Wisdom
|
|