Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Module error

by shenme (Priest)
on Dec 24, 2004 at 07:39 UTC ( [id://417274]=note: print w/replies, xml ) Need Help??


in reply to Module error

$mod->create("table", "string", "column"); # not work my $table = shift(); # picks up "table" $dbh->do("CREATE TABLE $table ...
At the very least, some databases object to using reserved words for table and column names, so don't use a table name of 'table'. And elsewhere we see why you might not know that ...
{ PrintError => 0, RaiseError => 0, AutoCommit => 1 }

At the very least, add calls to Data::Dumper so you can see what your object really holds after the call to new():

use Data::Dumper; my $mod = new WIDX; # ok...it works... maybe... print Data::Dumper->Dump([ $mod ], qw([ *mod ]) );

Log In?
Username:
Password:

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

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

    No recent polls found