in reply to Re^2: grep and dereferencing an array of arrays
in thread grep and dereferencing an array of arrays

Using a hash is a great idea, one that I contemplated earlier but discarded because other parts of the program rely on the data being maintained in an ordered list -- which arrays provide but hashes do not.

Honestly, I'm still trying to get my head around why the grep returns its data in a list context while the foreach does not. I expected the two routines to be equivalent....