in reply to Inserting values into an array

I think
my @array = <>;
will do.