Help for this page

Select Code to Download


  1. 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.
    
  2. or download this
    sub create_lead {
      my $self = shift;
    ...
    
      return $data;
    }
    
  3. or download this
    sub save_lead {
      my $self = shift;
    ...
    
      return 1;
    }
    
  4. or download this
    r2h(..) {
      my $dbh = shift;
    ...
      }
      ...
    }
    
  5. 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.