I'm not really sure where slices come into it. I think you may have meant "list" instead of "slice".
A hash can be created from a list of key/value pairs. And a hash evaluated in list context returns that same list (tho' perhaps in a different order). Slices don't enter into in at all.
Please be a little more careful with your terminology.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^2: doubts in reference
by davorg
in thread doubts in references
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |