in reply to Re: super CGI?
in thread super CGI?

I don't like having
use Foo; use Bar; use Baz; use Quux; use Foo::Bar; ...

I'd much rather have
use Super::Foo; my $super_cgi = Super::Foo->new; ...
meh.

Replies are listed 'Best First'.
Re^3: super CGI?
by rhesa (Vicar) on Apr 18, 2006 at 00:13 UTC
    In that case, consider writing your own meta CGI::Application module:
    package Dhoss::App; use Foo; use Bar; use Baz; use Quux; use Foo::Bar; use base 'CGI::Application'; 1;
    Then start out every app based on that super class (use base 'Dhoss::App';). Easy peasy.
      that looks simple enough...will i need to incorporate any @EXPORT stuff?
      meh.
        No. This is basic OO stuff, simple inheritance.