Well, the offending line seems to be the one that starts with $DB->sql. Clearly, some element of @db_values is undefined. If that's OK with you, then do this:
{
no warnings 'uninitialized';
$DB->sql("INSERT INTO Files (File_Path, File_Name, Size_Byte, Cr
+eated, Modified, Accessed, Type) VALUES ('$db_values[0]','$db_values[
+5]','$db_values[1]','$db_values[2]','$db_values[3]','$db_values[4]','
+$db_values[6]')");
}
Alternatively, leave that line as is and instead do something like this:
my @db_values = map defined( $_ ) ? $_ : '', split (/,/,$entry);