Hello.

Since I'm new both to CGI::Application and OO Perl it's not
easy to explain what I'd like to do.

For Example if I'd like to create a WebApp that manages
User accounts on different Unix Systems. There are run-modes
that will be the same for every Unix, others (sth. like "add_user" )
that are slightly different, and others that are totally different
or even additional because on a special host in addition to
create the user I want to put him into /etc/aliases and set quotas
and whatever.

As start-screen I would like to have a menue where you can choose
first the platform and then the host.

I read the perldoc for CGI::Application as well the O'Reilly
Article on www.perl.com.
Somehow you CAN do such a thing in an easy way, but I'm not
really sure exactly how to structure it.
Must have sth to do with the use of cgiapp_init() and the
possibility of calling run_modes() more than once.

OK, Building a "ordinary" WebApp using CGI::Application was
no problem for me, i.e. one instance script and one application
module with severeal run-modes in it.

But this is a bit different.

How exactly to inherit from a Superclass-WebApp?
Why does one use "use base 'CGI::Application';" and not
@ISA qw( CGI::Application ) , btw?

And what about a mechanism to decide what Class
exactly to instanciate at runtime? Different 
instance-Scripts?

Hmm...I hope somebody understands my question(s).


Thanks in advance,

Dirk Wessner

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to