On 4/29/06 12:20 PM, Guillermo Roditi wrote:
> It seems to run fine but then I have no output or anything? is it supposed
> to ouput to stdout? or a file?

It depends on which methods you call.

> ----------------------
> #! /usr/bin/perl -w
> use strict;
> use warnings;
> use diagnostics;
> use Rose::DB::Object::Loader;
> use PaperKiller::DB;
> my $loader = Rose::DB::Object::Loader->new(db
> =>PaperKiller::DB->new('main'),
> class_prefix => 'PaperKiller::DB');
> $loader->make_classes;

That call to make_classes() is going to make the classes in-memory.  If you
want to create actual *.pm files on disk, use the make_modules() method:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Loader.pm#make
_modules

It will call make_classes() for you, then write the resulting *.pm files to
the directory that you specify.  But remember, this isn't strictly a
necessary step.  You can begin using the classes that are generated
in-memory right after you call make_classes().  You just have to know what
the class names are.

If you just want to see what the generated classes look like (e.g., to learn
the class names), you can print them to STDOUT using the code shown in the
Loader example in the tutorial:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Tutorial.pod#T
he_loader

-John




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to