Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
... while (my $pointer = $sth->fetchrow_hashref){ $myfile_number = &cleaner ($pointer->{'file#'}); print $myfile_number; }
... while (my $pointer = $sth->fetchrow_hashref){ $c++; $myfile_number = &cleaner ($pointer->{'file#'}); #print $myfile_number; Don't print here } print $myfile_number;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: While Loop
by gothic_mallard (Pilgrim) on Oct 21, 2004 at 14:01 UTC | |
by Anonymous Monk on Oct 21, 2004 at 14:26 UTC |