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:
Alternatively, leave that line as is and instead do something like 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]')"); }
my @db_values = map defined( $_ ) ? $_ : '', split (/,/,$entry);
the lowliest monk
In reply to Re: Most Annoying Error : Use of uninitialized value in concatenation (.) or string at C:\Perl\O
by tlm
in thread Most Annoying Error : Use of uninitialized value in concatenation (.) or string at C:\Perl\O
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |