| 1 | my $res = $df->append_email( | ||
| 2 | { | ||
| 3 | d_zip => $cust->{ZIP}, | ||
| 4 | d_fulladdr => $cust->{Address}, | ||
| 5 | d_state => $cust->{State}, | ||
| 6 | d_city => $cust->{City}, | ||
| 7 | d_first => $cust->{Name}, | ||
| 8 | d_last => $cust->{Surname} | ||
| 9 | } | ||
| 10 | ); | ||
| 11 | if ($res) { | ||
| 12 | if ( $res->{ num-results } ) { | ||
| 13 | # there is a match! | ||
| 14 | print "Got a match: " . Dumper( $res->{results} ); | ||
| 15 | } | ||
| 16 | } else { | ||
| 17 | warn 'Something went wrong ' . $df->error_message(); | ||
| 18 | } |