in reply to Re^8: Is this the correct structure?
in thread Is this the correct structure?
You have 2 problems. First the data array need to be transposed to create 4 rows with 17 columns
while(<IN>){ chomp; my @cols = split/\s+/,$_; for my $ix (0..$#cols){ push @{$data[$ix]}, $cols[$ix]; } }
and second, in the creation of the dataset use
otherwise you create a reference to the same data each time pojydata => [ @{$data[$y]} ],
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^10: Is this the correct structure?
by Anonymous Monk on Jul 06, 2013 at 18:01 UTC |
In Section
Seekers of Perl Wisdom