in reply to Re: Parse txt file into array of array
in thread Parse txt file into array of array
Thanks that works great! Next question- How do I reference an element if I want to splice it?
my $length = $#MainArray; for (my $x = 0; $x <= $length; $x++) + { my $smallLength = $MainArray[$#$x]; for(my $q = 0; $q <= $smallLength; $q++) { my $element = $MainArray[$x][$q]; if(some if statement concerning $element) { splice(How do I reference this part?); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parse txt file into array of array
by kcott (Archbishop) on Jun 06, 2013 at 20:30 UTC | |
by Dr Manhattan (Beadle) on Jun 07, 2013 at 07:55 UTC | |
by kcott (Archbishop) on Jun 07, 2013 at 09:48 UTC | |
|
Re^3: Parse txt file into array of array
by hdb (Monsignor) on Jun 06, 2013 at 18:42 UTC |