for my $filename (@list_files) #### @output = $timestamp .'.sql'; open(my $fh, '>', @output) or die "Could not create file '@output': $!";