George Hartzell writes: > > I have a bunch of classes that are created automagically for me by > Rose::DB::Object::Loader. > > In one of those classes I'd like to use load_or_insert from > Rose::DB::Object::Helpers. > > I'm not sure how to do it politely. > > Just for grins, I tried this: > > use Rose::DB::Object::Loader; > > package Foo::DB::Set; > use Rose::DB::Object::Helpers 'load_or_insert'; > package Main; > > and it says: > > Can't use string ("Foo::DB::Set") as a HASH ref while "strict refs" in use > at /usr/local/lib/perl5/site_perl/5.8.8/Rose/DB/Object.pm line 92. >
I know that following up to one's own posts isn't the best thing, but I think that the particular problem above happened because I thought load_or_insert was a class method, when it looks like it's an instance method. > So even being less than graceful isn't working. > > Can someone suggest the right-most way to do this? This question still stands, is there a standard way to use mixin classes w/ Loader? g. ------------------------------------------------------------------------- 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