Perl hashes are associative arrays. They're called hashes because they're implemented as hash tables.
If I understood correctly, you called $array = array(1, 2, 3, 4); an associative array. It's not. It's just an array (if that) because the values aren't associated with anything.
In reply to Re: Difference between array and a hash? (Newbie concerns)
by ikegami
in thread Difference between array and a hash? (Newbie concerns)
by reztlaf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |