In CGI::Application as long as you are using the $self->query() method to grab the your $cgi object you are not doing multiple queries.
CGI::App needs to reads the 'rm' value from the cgi object so that it knows which run-mode to call. Therefore it must load a new instance of CGI.pm (or CGI::Simple) in-order to operate. It then stores the $cgi object so that it can be retrieved any time you make a call to the query method. So as long as your code looks like: --- my $cgi = $self->query(); --- and not like: --- use CGI; my $cgi = new CGI; --- You are only really loading one instance of the cgi object. > > > I am unsure. The only test that they come close in is the > > > "new process" one. The one passing data around seems > > > to show "simple" being much faster. > > The 'new process' is the main issue that I am concerned with. > > Someday I will care about the other ways. I may switch to > > using CGI::Simple even those it is not that big of a saving for me. > That is the one that gets me thinking. Am I spawning processes or am I > passing data more? --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
