The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 10-14-2008
pietie pietie is offline
Registered User
  
 

Join Date: Oct 2008
Location: C:/dos/run
Posts: 5
Quote:
Originally Posted by jim mcnamara View Post
Code:
my @data = ['Project', 'HW1', 'HW2', 'HW3', 'MidTerm', 'Final'],
            [25, 6, 7, 2, 25, 35];
print $data[0][1] "\n";   # first row second column
creates a matrix - your two D array. IS that what you want?
hi Thank you for your reply. It put me on the right track, and now I have the text file in a matrix(2d array). Regards