in reply to Re: CGI::Application same function code
in thread CGI::Application same function code
I think I read somewhere on the C:A mailing list that you could only use a function name as a runmode, what exactly are you doing here:
I understand that you call the _runmode function with the argument 'start' but besides that?? Could you send in other arguments, objects as well?start => sub { shift->_runmode('start'); },
However, In the examples I still need to add the cgi object-, dbh code in the showStart function to be able to get the function specific code to work.
I somehow want my functions to inherit from one function that has all the basic code such as: self, cgi object, dbh, output etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CGI::Application same function code
by Tanktalus (Canon) on Feb 13, 2005 at 16:05 UTC |