Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Mason, DBI, and DBI::Pg

Thread Tools

Mason, DBI, and DBI::Pg

Posts: n/a
Heard a lot about Mason, so I'm playing around with it. I builded a
Postgresql database, with a simple table with one user in it. I wrote a
script which will check the database for the user and print the output.
Somehow it doesn't work always, don't know what is going wrong, but I get my
expected output and if I refresh it will give me sometimes the following

System error
error: Undefined subroutine &DBD:g::db::_login called at
/usr/lib/perl5/site_perl/5.8.0/i686-linux/DBD/ line 98.

context: ...
94: }
95: $sth->finish;
96: $dbh->disconnect;
97: return @sources;
98: }
101: sub connect {
102: my($drh, $dbname, $user, $auth)= @_;

code stack: /usr/lib/perl5/site_perl/5.8.0/i686-linux/DBD/

All my modules are fresh from CPAN and still I get this error sometimes.
What gives me this error and how can I solve it?


Follow your money:

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM