Hi Joel --
Hey all. I'm starting out with CGI::Application, and I've got a littl
script that runs fine on one server, but on another server, it gives
me this error message.
[Sun Oct 28 17:29:23 2001] cc.cgi: Can't use string (start) as a
subroutine ref while strict refs in use at
/usr/local/lib/perl5/site_perl/5.6.0/CGI/Application.pm line 90.
OK. I did some reading, and found that I need to replace my subroutine
names with references, so instead of
'start' = 'start', I had to use 'start' = \start, though I'm not
sure why.
You need to upgrade to the latest version of CGI::Application. Versions
prior to 1.3 only allowed subroutine references to be used -- not the names
of functions. If you upgrade to the latest version, your code should work
properly.
-Jesse-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]