in reply to Re^2: If condition
in thread If condition
I'm not sure if this is what you want, but it makes more sense to me!my $cor ; my $date ; for my $data_pair (@data_list) { if($data_pair->{'key'} eq 'correct'){ $cor= $data_pair->{'value'}; } if($data_pair->{'key'} eq 'date'){ $date= $data_pair->{'value'}; } $sql_content .= "INSERT IGNORE INTO correct SET text='".$cor."', + date='".$date."'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: If condition
by ashish.kvarma (Monk) on Jul 14, 2009 at 12:22 UTC |