in reply to Passing arrays
It simply pushed the contents of the file into a matrix using push. I hope this helps you out a bit.open FILE, "<input.txt"; open OUTP, ">output.txt"; undef (@matrix); while (<FILE>){ push @matrix, [split]; } &dataconvert; # this is where it branched off to #change up the data select OUTP; for $i (0.. ($#matrix)){ print "@{$matrix[$i]} \n"; }
|
|---|