c_lhee has asked for the wisdom of the Perl Monks concerning the following question:
If 3 rows contains the following variables e.g.
$idx = 1; $team = team a; $idx = 2; $team = team a; $idx = 3; $team = team a;
How do I to get to display the 3 rows that contains all "team a" and the $idx from the while statement.
team a 1 2 3
#CODE STARTS HERE# sub initialize { local ($x) = @_; if ($x == 1) { $idx = &dummyvoid($row->{'idx'}); $team = &dummyvoid($row->{'team'}); } } while ($row = $sth->fetchrow_hashref) { &initialize(2); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting specific variable data per row.
by davorg (Chancellor) on Nov 27, 2001 at 15:47 UTC | |
by c_lhee (Novice) on Nov 28, 2001 at 13:34 UTC |