[This post is obsolete]
@a[2..5] is an array slice, not a hash slice. @h{'a','b'} would be a hash slice.
In reply to Re^2: Perl assign scalar to array
by ikegami
in thread Perl assign scalar to array
by bagyi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |