On Mon, 18 Oct 2004 20:18:17 +1300, Dan Horne <[EMAIL PROTECTED]> wrote:
> Cees Hek wrote:
> > Is it possible that you are using CGI::Simple instead of CGI?
>
> Ah, that's it! I thought CGI::Simple was a drop-in replacement for CGI if I
> didn't require the HTML functions (as per
> http://twiki.med.yale.edu/twiki2/bin/view/CGIapp/TipCGISimple).
This is not the fault of CGI::Simple, but of CGI::Session.
CGI::Session will only work if you pass it a real CGI.pm object (it
does an ->isa('CGI') call on the object passed in). What it really
should do instead is check for the existence of a 'cookie' and 'param'
method. It might be worth sending the author of CGI::Session a patch
to fix this.
I ran into this with a few other modules as well, hence I abandoned
using CGI::Simple. It is unfortunate, because CGI.pm has so much
stuff in it that I never use...
Cheers,
--
Cees Hek
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]