Try this instead:
$hash {$countit} = {FILE => $file}; [download]
In reply to Re: How to use variable in Hash title by Abigail-II in thread How to use variable in Hash title by itsmrchris