in reply to Re: Re: Re: Cookies created via CGI.pm and CGI::Cookie incorrectly made
in thread Cookies created via CGI.pm and CGI::Cookie incorrectly made
All I'm doing with the small script is providing a bare bones example to highlight a problem I'm facing in a way I can test, since, as I stated, I can't ssh into the site, I'm working through the web browser to debug something. Such is the life of the lowly CGI programmer.
Namely, I'm getting completely different results with the same code, one of the results is highly broken. Believe me, I know how to set a cookie to be used via a browser. In all civility, I don't know why that is tripping up so many people. I could have pasted all 8000+ lines of the program, but that doesn't help any of us.
Correct me if I am wrong, but this code:
#!/usr/bin/perl use CGI; my $q = new CGI; my $foo = $q->cookie(-name => 'someName', -value => {some => "value"}) +; print $foo;
will set foo to a scalar value, not a reference to some internal cookie object.. So, if I print out, like I had in my example, it doesn't matter where i"m printing it out, for testing purposes.
-justin simoni
!skazat!
|
|---|