(this *may* be more a perl question as opposed to a cgiapp question so
apologies in advance if it is)
I want to create a module (like cgiapp::Plugin::DBH) that I can *use*
and then call directly from $self.
As an example, say that the application is a blogging application, and I
want to create the variable:
$self->blog
so that I can do
$self->blog->getBlog($blogid);
(or some such equivalent method) that returns (say) a database handle.
How would you do this by putting *just*
use MyApp::Plugin::Blog;
at the top?
I'm confused. Am I missing something about cgiapp that I should know about?
TIA
Paul
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]