I tell my students, and they typically don't have problems recognizing what is what when they think of it this way:
When you see a $, you're dealing with one thing. When you see a @, you are dealing with zero or more things. You tell the variable type by what comes after it (nothing in scalars, square braces for arrays, braces for hashs).
Sadly, this is going to change in Perl 6.
In reply to Re: array splice vs hash splice
by brian_d_foy
in thread array splice vs hash splice
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |