Help for this page

Select Code to Download


  1. or download this
    use My::Customer;
    use CGI;
    my $cgi = CGI->new;
    ...
    my $cust = My::Customer->load_from_id($cust_id);
    $cust->email($email);
    $cust->save;
    
  2. or download this
    use Class::CGI
      handlers => {
        customer => 'Class::CGI::Customer'
    ...
    # validate email
    $cust->email($email);
    $cust->save;