sloppyhack
Technical User
I am trying to cycle through all of the "rows" of a two dimensional array. I can cycle through and access/print the elements I want, but the loop does not exit? Here's an example of the code.
while (@aliasdata) {
++$aliasrow;
print TEMP $aliasdata[$aliasrow][1],"\n";
}
@aliasdata remains true and I get an infinite loop which prints the elements of the file but continues to print "\n" indefintely. Works without using the $aliasrow variable? Anyone know why this is happening?
Thanks
Bryant
Boulder CO
while (@aliasdata) {
++$aliasrow;
print TEMP $aliasdata[$aliasrow][1],"\n";
}
@aliasdata remains true and I get an infinite loop which prints the elements of the file but continues to print "\n" indefintely. Works without using the $aliasrow variable? Anyone know why this is happening?
Thanks
Bryant
Boulder CO