Actually, it doesn't sound like you should be naming your hashes using the
$countit variable anyway. You're probably better off putting all of your hashes in an array and using
$countit as the array subscript.
$array_of_hashes[$countit]->{FILE} = $file;
or...
%{$array_of_hashes[$countit]} = (FILE => $file);
-Bird