> -----Original Message----- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of Duffy, Peter > Sent: 22 March 2012 15:27 > To: Duffy, Peter; 'perl-win32-users@listserv.ActiveState.com' > Subject: CGI::localxxxxxlabel > > Sorry, I've got "local" on the brain at the moment ... > > For CGI::local in the below, please read CGI::label > > -----Original Message----- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > win32-users-boun...@listserv.activestate.com] On Behalf Of Duffy, Peter > Sent: 22 March 2012 14:45 > To: 'perl-win32-users@listserv.ActiveState.com' > Subject: CGI::local > > Apologies in advance for what is probably a braindead question > > I'm hitting a weird problem with the CGI.pm module under Windows: to > cut a very long story short, we're moving a package of perl code from > one server to another. Everything works fine on the old one, but on the > new, the web client seems to hang whenever a cgi script tries to output > the html for a checkbox. Setting $XHTML in the CGI.pm module to 0 seems > to make it work OK. > > The problem seems to be that, when $XHTML is set, the checkbox routine > tries to call CGI::local - and this call never returns. What is > baffling me is that CGI::local doesn't seem to be defined anywhere - > but a test script to use CGI and then call CGI::local compiles and runs > OK - so it must be finding it somewhere. > > I'm obviously missing something! Could someone explain to me where > CGI::local is defined, and how perl finds it?
Being an html tag, the function to generate it is probably autoloaded. A case insensitive search of CGI.pm for 'autoload' may give a bit more insight. It's possible that your web client doesn't handle xhtml, which is the default style now. In which case it is probably better to specify the -no_xhtml pragma rather than editing CGI.pm. See 'perldoc CGI' for details. HTH -- Brian Raven Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs