
July 18th, 2012, 03:53 PM
|
|
|
Code:
#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
my $file = 'green_scan.txt';
my @data;
open my $fh, '<', $file or die "failed to open '$file' $!";
while (my $line = <$fh> ) {
next if $. < 17;
chomp $line;
push @data, [ split ' ', $line ];
}
close $fh;
print Dumper \@data;
exit 0;
|