I am inserting a csv file into MySQL using Perl. I have successfully inserted some data into MySQL. However, some fields in the csv file are null and the code cannot continue to run.
What is the correct way to express if statement to check if $rttjitter
is not null, else print that row number, then execute?
i.e. 2 criteria: $rtt
is not equal to 0 and $rttjitter
is not null.
my $empty = q{};
my @nulls = ();
if ($rtt !=0 && $rttjitter ne undef)
^ These do not work quite well.