Nov 17, 2011, 8:28 AM
Replace @data = .... with:
Re: [teknokid1] Need to create a 2D array to store desired data.
push @data, [(split)[5..7]];
This uses the default arguments for split,
Makes a reference to elements 5 through 7. Note: In perl, array index starts at zero, not one.
pushes that reference into the array @data.
(This post was edited by BillKSmith on Nov 18, 2011, 5:47 AM)