in reply to While Loop

I think what you're wanting is to put the values you're getting into an array that can be seen thoughout the scope of the while and after it:

my @myfile_numbers = (); while (my $pointer = $sth->fetchrow_hashref){ $c++; $myfile_number = &cleaner ($pointer->{'file#'}); push @myfile_numbers, $myfile_number; }

Now you'd have the array @myfile_numbers available after the loop has completed containing the values you read in the order you read them.

--- Jay

All code is untested unless otherwise stated.

Replies are listed 'Best First'.
Re^2: While Loop
by Anonymous Monk on Oct 21, 2004 at 14:26 UTC
    Thank you, that will do it!!!! Thanks again!!!!!!