} else {
$op = ">=";
}
- my @data = $rdb->sql("select name, address, city, state, zip, id from cardfile where id $op $nextid");
+ my $sql = "select name, address, city, " .
+ "state, zip, id from cardfile " .
+ "where id $op $nextid";
+
+ my @data = $rdb->sql($sql);
$rdb->close("cardfile");
my $status = shift @data;
} else {
$index = 0;
}
- my($name, $address, $city, $state, $zip, $id) = split (/\0/, $data[$index], 6);
+ my($name, $address, $city, $state, $zip, $id) = @{$data[$index]};
$self->setCols__ssssss($name, $address, $city, $state, $zip, $id);
}}