That's a Hash Slice
Here a little compilation with more usage examples I found in a blog: Perl 5: Hash slices can replace loops
NB: the my %hash; doesn't need to be in the same line!!!
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^4: Group by from array
by LanX
in thread Group by from array
by sroux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |