[Israel.pm] array 2 hash for quick search

Gabor Szabo gabor at pti.co.il
Tue Jun 15 07:16:32 PDT 2004


On Tue, 15 Jun 2004, Omer Zak wrote:

> Of course, the most general concept enclosing the concept of arrays is the
> concept of function.
> Now, the question is how to write in Perl a function call so that it'll
> look like an array indexing operation (i.e. $arr[$val] rather than
> &arr($val))?

tie

there is even a module that implements this behavior called
Array::Unique

but that sucks :)

Gabor




More information about the Perl mailing list