I have a script that runs and downloads some data. Everything works fine for around 60 pulls and then suddenly I get the error:
Use of uninitialized value $_ in substitution (s///)
while ( my $row = $ia_applicant_query->fetchrow_arrayref ) {
s/\t/ /g for @$row; # <------- THIS IS WHAT THE ERROR POINTS TO
my $line = join "\t", map { defined $_ ? $_ : '.' } @$row;
$mydb->func( "$line\n", "putline" );
}
The error is then just repeated for the remaining 800 pulls. Any Idea what could be going wrong?