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.

So even being less than graceful isn't working.

Can someone suggest the right-most way to do this?

Thanks!

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

Reply via email to