The stupid question is the question not asked | |
PerlMonks |
array splice vs hash spliceby kiat (Vicar) |
on Jun 05, 2005 at 02:24 UTC ( [id://463631]=perlquestion: print w/replies, xml ) | Need Help?? |
kiat has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Just out of curiosity... An array is prefixed with @ and so when you want to do an array splice, you also use @ to get to the elements: A hash is prefixed with % but why is a hash splice prefixed with @ and not %? Hope someone can enlighten me. Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|