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;
In Section
Seekers of Perl Wisdom