in reply to Re: Hashes and Arrays
in thread Hashes and Arrays
I really want to do this for each row:my $x = 0; while ($printrows[0][$x]) { print "First: $rows[0][$x]\n"; $x++; print "Second: $rows[0][$x]\n"; $x++; }
Because, then I can reference a row directly without having to do: $x=2 X 15, $rows[0]$x to get to the 15th row.my $x = 0; while ($printrows[$x][0]) { print "First: $rows[$x][0]\n"; print "Second: $rows[$x][1]\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hashes and Arrays
by sauoq (Abbot) on Jul 17, 2003 at 02:04 UTC |