my code structure is like this:
/Base.pm
/---/User.pm
/---/User/AAA.pm BBB.pm CCC.pm
/---/Admin.pm
/---/Admin/Auth.pm OP1.pm OP2.pm OP3.pm
User.pm and Admin.pm 'use base' Base.pm,
also defined cgiapp_prerun _ini ... in Base.pm,
On 07/14/2011 02:18 AM, silent wrote:
also I do not want Admin.pm override defined cgiapp_prerun in Base.pm.
Can it extend it?
In Admin.pm
sub cgiapp_prerun {
my $self = shift;
# this runs Base.pm's cgiapp_prerun()
$self-SUPER::cgiapp_prerun();
# do what I need to do here
}
--
CGI::Application page http://cgi-app.org/index.cgi?HomePage edited by Dave
# CGI::Application community mailing list
####
## To unsubscribe, or change your message delivery options, ##
## visit: