From: "Kenneth Lee" <[EMAIL PROTECTED]>
> > I wrote a module CGI::CommonObject which is a subclass of CGI.
> > If I preload them both in conf/startup.pl, error occurs when I try to
> > instantiate CGI::CommonObject.
> > ...
> >   my $q = new CGI::CommonObject;

Kenneth, _never_ use that style of calling class methods. To really
understand why, read Damien Conway's excellent 'Object Oriented Perl', in
which in gives an excellent overview of the many problems this causes with
inherited classes.

Instead, use:
my $q = CGI::CommonObject->new();

It's less pretty, perhaps, but _much_ more reliable.


Reply via email to