I've now written a script that generates the table class .pm files for my database using the Loader. (This works around the problems I was having just using Loader by itself and is also a better way of doing things, I gather). After doing this I struggled for some time to get the packages working properly (again). I finally realised what was confusing me and thought it might be useful for any beginners in the future.
Each table class module starts: use base qw(GARD::DB::Object); However, I use Indigo PerlEdit as my editor and if I check syntax using this, the check fails pointing to this line as the culprit. The error message is this: Base class package "GARD::DB::Object" is empty. (Perhaps you need to 'use' the module which defines that package first.) Because I'm so used to using the syntax checker to check that stuff is working before actually running a program, and because the check was failing, I assumed that something was incorrect and spent a considerable amount of time tinkering around with different things trying to fix it (causing more problems in so doing). In actual fact, the line works when I actually run my program and no errors are found. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object