Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Class::DBI find_or_create method inserts record but $obj->id is undef

by jerrygarciuh (Curate)
on Jan 23, 2004 at 23:46 UTC ( #323738=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $id = shift;
    
    $id ||= $q->param('id');
    ...
    }
        
    $obj->update;
    
  2. or download this
    sub save_to_db {      
        my $self = shift;
        my $class_id = shift;
    ...
        # print data_form
        return $self->render_page('cp/cp_index.html', { educator_id    => 
    +$class->educator }); 
    } # end save_to_db()
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://323738]
Approved by jdtoronto
help
Chatterbox?
[Corion]: james28909: You can get a list of all modules on your Windows Perl via the autobundle command in the cpan shell. But that likely lists many more modules than you actually want. I recommend a clear separation and installing modules on ...
[Corion]: ... both Perls separately. I use cpanfiles or Makefile.PL for that - listing all modules for an application there allows me to install them via cpanm . or cpan . automatically without any further interaction

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-05-23 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?