> there must be a slight trade-off... the processing required to initialize the > hash table with it's keys and values is probably more intensive than defining > an array with its respective values? Unless, internally, Perl stores arrays > as hashes, with the indexes as the keys.
I would have thought there would be more of a hit for initialising hashes over arrays, but the gains in efficiency later would outweigh that hit I'd have though? Ben -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/