in reply to Re: Class::DBI::Loader error: Can't locate object method "set_db"
in thread Class::DBI::Loader error: Can't locate object method "set_db"
Tables will be accessed as MyCompany::MyProduct::Database::Tablename.
What I have shown above is the entire module. I removed all other code to give as clear of an example as possible.
Here is the code that tries to use it:
#!/usr/local/bin/perl use strict; use warnings; use lib '/myproject/lib'; use MyCompany::MyProduct::Database; use Data::Dumper; my $person = MyCompany::MyProduct::Database::Person->retrieve(7); print Dumper $person;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Class::DBI::Loader error: Can't locate object method "set_db"
by Corion (Patriarch) on Apr 12, 2005 at 11:15 UTC | |
by kudra (Vicar) on Apr 12, 2005 at 11:34 UTC |
In Section
Seekers of Perl Wisdom