in reply to in function?
If you go the hash way, there is another, shorter way of initializing the array using a hash slice:
Note that @myhash is being used, although %myhash is the one being initialized.@myhash{@myarray}=(1) x scalar(@myarray);
--ZZamboni
|
|---|