in reply to Chomp an AoA?

chomp works on a list of strings. An array of array references listifies to a list of array references, which are stringified, which doesn't do what you want.

Why not just chomp each line as you read it, before you split it?