Richard Jones wrote:
Hi Mark,
Appreciate the reply.
Mark Stosberg wrote:
And one other suggestion: If you find you are doing this a lot:
$c->param('model')
Go ahead and make a simple shortcut method for it, so you can just say
$c->model;
Did you have something like this in mind:
sub model {
my $c = shift;
return $c->param('model');
}
Seems a bit, erm, 'trivial' ?
That may be trivial today, but it gives you the freedom to make it much
smarter, without having to change the calling code. You can't do that if you
have $c->param('model') littered around the code base.
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/ ##
## ##
################################################################