Perl: $data[$i]->[$j] problem
Hey,
Thank you in advance. So here is my code Code:
my $mat ='Matrix.txt'; "Use of uninitialized value in print at test.pl line 23." and is there a better way to find the dimentions. I know that I can print the matrix using the Code:
$data->[$i][$j] Cheers Paul |
ok so I looked at it again and it was the for loop. But I would still like some help on finding a better way to get the dimentions of the array. I've probably killed my thread due to my reply taking it off the 0 reply list. :(
|
Did you mean to assign $j and $t to 0 during each for loop? you probably meant to use ==
|
Yea so what it was, was that the dimentions were off and it was tring to go for too long. So == probably would have worked as well. Thank you for the help.
|
All times are GMT -5. The time now is 12:30 AM. |