- or download this
# Pass these items
# DBI object
...
# r2h's in other modules return an array instead
# ($data, $err) so that caller can distinguish between no
# entry in the table and a real error.
- or download this
sub create_lead {
my $self = shift;
...
return $data;
}
- or download this
sub save_lead {
my $self = shift;
...
return 1;
}
- or download this
r2h(..) {
my $dbh = shift;
...
}
...
}
- or download this
create_tmp_table('leads');
.. creates leads_XXXXX in MySQL DB
.. methods like save_lead() will create the row or update the row in t
+hat table instead.