Hello,

I just thought of a CGI::App tip that may be of interest to some of you.
In my application design, I have run modes organized into three modules,
but just one setup routine in the main module that all three modules
depend on. I wanted to only load a run-module if one of the run modes in
it was called. One way to do that was to make an entry in the setup()
routine like this:

 my_user_rm => sub { require Cascade::User; &Cascade::User::my_usr_rm };

This way, the Cascade::User module only gets loaded if my_user_rm is
called.

    -mark

http://mark.stosberg.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to