
BillKSmith
Veteran
Nov 17, 2011, 8:28 AM
Views: 2159
|
|
Re: [teknokid1] Need to create a 2D array to store desired data.
|
|
|
Replace @data = .... with: 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. Good Luck, Bill
(This post was edited by BillKSmith on Nov 18, 2011, 5:47 AM)
|