in reply to Inserting values into an array

my @data; $/ = ''; while (<>){ push @data, $_; }

Or more succintly:

$/ = ''; my @data = <>;