http://www.perlmonks.org?node_id=1040661


in reply to Re: divide one file into multiple arrays
in thread divide one file into multiple arrays

I fully agree a hash would be far better, even with a relatively small number of sites. It is not only faster, but it is also easier to code. A simple search in a hash is more straight forward than a grep (or whatever other implementation) in an array