Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2d array boundaries

Status
Not open for further replies.

Panthaur

IS-IT--Management
Jul 26, 2002
78
US
I have an array in perl which looks similar to this:

$ary[0][0] = "Title";
$ary[0][1] = "ColA";
$ary[0][2] = "ColB";
$ary[0][3] = "ColB";
$ary[0][4] = "ColB";
$ary[1][0] = "Title";
$ary[1][1] = "ColA";
$ary[1][2] = "ColB";
$ary[1][3] = "ColB";
$ary[1][4] = "ColB";

I know that by doing a print $#ary; I will get the size of the first part of the array, which is a "1", but I need to know how to get the size of the 2nd part of the ary which should be a "4".

Thanks in advance for the help,
Pan
 
Thanks for the help! I got it working.

Wade
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top