class::dbi

Scott McWhirter sleepy_uk at hotmail.com
Thu Jan 10 10:26:40 CST 2002


hey guys,
having a problem with Class::DBI. this is what i have in the files below
------------------------------------------------------------------------(/DB.pm)
package DB;

use base 'Class::DBI::mysql';
__PACKAGE__->set_db('Main','dbi:mysql:main','chatbox','chatbox');

1;
------------------------------------------------------------------------(/DB/chat.pm)
package DB::chat;

use base 'DB';
__PACKAGE__->set_up_table('chat');

1;
------------------------------------------------------------------------(/www/index)
#!/usr/bin/perl

use strict;
use warnings;
use DB::chat;

print "lo!";
------------------------------------------------------------------------(And 
this is the error stuff)

[Thu Jan 10 16:07:18 2002] [error] Can't locate object method "set_up_table" 
via package "DB::chat" (perhaps you forgot to loa
d "DB::chat"?) at /usr/local/lib/site_perl/DB/chat.pm line 4.
Compilation failed in require at /home/kungfuftr/www/index line 5.
BEGIN failed--compilation aborted at /home/kungfuftr/www/index line 5.
------------------------------------------------------------------------Anyone 
have any ideas?
ta!


--
-Scott McWhirter- | -kungfuftr-
PGP key id: 0x3C79CF1D

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




More information about the Belfast-pm mailing list