Hi Thanks to both respondents. Both answers were very helpful.
It turns out to be a quirk or bug in FireFox possibly involving Firebug. A CSS file is included in a Web Page with a link tag; something like href="/includes/css/myfile.css". I closed Firebug so I don't know if it was that or FF but something was generating a GET request to to /page_url/myfile.css every time the page was posted to /page_url and I had a mod_rewrite rule which caught /page_url/myfile.css and mapped it to my instance script (treating myfile.css as some additional parameter). The cluck tip was very useful as was the suggestion to look in the access logs to see if the script was being called twice. Thanks to both Michael Peters wrote: > > kropotkin wrote: > >> I have a form post to a url. The 'runmode' is passed as a form field. The >> 'instance script' is called and it instantiates its class. The >> subroutine/runmode is called. Twice. >> >> Do any obvious causes occur to anyone? > > It's being called twice? Once by C::A during and once by your module? I'd > use Carp::cluck in your > run mode to get a backtrace of where exactly your method is being called > from. > > -- > Michael Peters > Plus Three, LP > > > ##### 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/ ## > ## ## > ################################################################ > > > -- View this message in context: http://www.nabble.com/Runmodes-always-being-called-twice-tp21835683p21838291.html Sent from the [email protected] mailing list archive at Nabble.com. ##### 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/ ## ## ## ################################################################
