in reply to Re: Reading a Line into an Arrayin thread Reading a Line into an Array
chomp foreach( @array );
Didn't you just mean chomp (@array); ?