Hello again.
Today I am being harassed by the evil CGI::Cookie which, I understand isn't supposed to be evil. Anyway, here's a segment of my script:
use strict; use CGI qw(:all); use CGI::Cookie; my ($domain, $name, $value, $expires) = ('65.1.136.248', 'SessionID', +$sessionID, '+1Y'); my $cookieheader = new CGI::Cookie(-name => $name, -value => $value, -expires => $expires, -domain => $domain) || die; print header(-cookie=>$cookieheader); my $badcookie = fetch CGI::Cookie('SessionID'); print $badcookie;
My error.log returns:
e:\apache\htdocs\cgi-bin\VCG-LO~1.CGI: Use of uninitialized value in p +rint at e:\apache\htdocs\cgi-bin\VCG-LO~1.CGI line 41.
As you probably see, I'm using Apache on Win32 (Win2k to be exact).
Line 41 is the: print $badcookie;

I checked my local cookies and it does exist. The $ENV{HTTP_COOKIE} seems to non-existant.
Thanks in advance.
--
paul

In reply to Cookie Woes by vbrtrmn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.