Brad Van Sickle wrote:
I find myself duplicating a lot of postrun code, so I'd like to move
that entire function up to a superclass file to centralize it.
My problem with doing that is that at I still have some logical
constructs that I need to set somewhere in each modules that are
module/runmode dependent.
[snip]
So what I've done is created a module in my superclass:*
*sub app_module_define_JS*
* {*
* my $self = shift;*
* return;*
}*
I then call that module at the start of post run*
my $JSIncludes=&app_module_define_JS;*
That should be:
my $js = $self->app_module_define_JS;
otherwise it isn't OO. &foo is the sub defined in the current package, so
you're disabling method dispatch.
HTH,
rhesa
##### CGI::Application community mailing list ################
## ##
## To unsubscribe, or change your message delivery options, ##
## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
## ##
## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
## Wiki: http://cgiapp.erlbaum.net/ ##
## ##
################################################################