Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Carp not working after change to objects

by cosmicperl (Chaplain)
on May 16, 2008 at 00:58 UTC ( [id://686832]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package db_base;
    use strict;
    ...
        $sth->execute(@$data) && {$self->{param}->{success} = 1} || croak(
    +"Cannot insert to $table: SQL = $sql\n $DBI::errstr\n$::backhtml");
    }#sub
    
  2. or download this
    use db_base;
    my $dbobj = new db_base( 'dsn', 'user', 'pass');
    $dbobj->connect;
    $dbobj->insert( 'test_table', [ 'column' ], [ 'value' ]);
    
  3. or download this
    Cannot insert to test_test_table: SQL = INSERT INTO `test_test_table` 
    +(`column`) values(?)
     Table 'affiliate.test_test_table' doesn't exist
     at c:/inetpub/wwwroot/cgi-bin/affiliate/db_base.pm line 52
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://686832]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found