I want to use a "WHILE" loop instead of a "FOR" loop
my $i = 0; while ($i < @$allnames) { .... $i++; }
instead of
for (my $i = 0; $i < @$allnames; $i++) { .... }
But why...? — Maybe you rather want something like
for my $elem (@$allnames) { my $allname = $elem->{name} || ''; my $alladdress = $elem->{address} || ''; ... }
In reply to Re: Fetching DB using a While loop.
by almut
in thread Fetching DB using a While loop.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |