in reply to Reading a file as an multi dimensional array Please help

In your code,
@data=<FILE>; <-- Puts the whole file in @data while(<FILE>) <-- There's nothing left to read here.
You simply want
#!/usr/bin/perl use strict; use warnings; my @list; open(my $fh, '<', $file) or die("Unable to open file \"$file\": $!\n"); while (<$fh>) { push @list, [split/s+/]; }