Sorry. What I mean is, change alter_superclass to just contain the class you are overriding (I assume that is HTML::Mason::Request::CGI). The code may be from the docs, but it seems a little suspect to me. For example, one could have H::M::ApacheHandler loaded even if one was using H::M::CGIHandler. Jon
On May 15, 2007, at 2:16 PM, Ian Burrell wrote: > On 5/15/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: >> Could you simplify the code you were using and take out the if() >> statement, or at least log which branch is being taken? >> > > What if statement? I got the error message even when all the request > subclass contains is the new() method from the subclassing > documentation. > > We are using Perl 5.6.1. > > - Ian > > package RTK::Util::Mason::ErrorHandlerRequest; > > use strict; > > use base 'HTML::Mason::Request'; > > sub new > { > my $class = shift; > > $class->alter_superclass( $HTML::Mason::ApacheHandler::VERSION ? > > 'HTML::Mason::Request::ApacheHandler' : > $HTML::Mason::CGIHandler::VERSION ? > 'HTML::Mason::Request::CGI' : > 'HTML::Mason::Request' ); > > my $self = $class->SUPER::new(@_); > > return $self; > } > > 1; > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users