hello all,

Allow me to share my latest problem to leave me scatterbrained, the code, if you would study:

#!/usr/bin/perl -w use strict; use CGI qw(:standard); use CGI::Cookie; my $q = new CGI; my $cookie = $q->cookie(-name => "thename", -value => "thevalue", -Path => "thepath"); my $cookie2 = new CGI::Cookie(-name => "thename2", -value => "thevalue2", -Path => "thepath2"); print $q->header; print $cookie; print $q->br; print $cookie2;

Fairly straightforward. When I run this via BBedit or via a terminal on my local mac, I receive this:

 
Content-Type: text/html

thename=thevalue; path=thepath
thename2=thevalue2; path=thepath2

Which is exactly what I think should be given back ( strokes long, waxed mustache)

Although, when I access this code in a browser via the same CGI script , I receive the following:

 
=-name; domain=-value; path=thename; expires=-path; secure
=-name; domain=-value; path=thename2; expires=-Path; secure

Wild, eh?

I'm running the stock Perl on mi mac, with version 2.56 of CGI/pm and version 1.12 of CGI::Cookie.

The offensive server is running version 2.752 of CGI.pm and version 1.12 of CGI::Cookie.

I haven't found the CHANGES or BUGS file associated with these modules, because I believe they're both bundled with Perl itself.

Anyone have a clue?

One real chocolate chip cookie to anyone that thinks they have a scan salt of an idea

 

-justin simoni
!skazat!


In reply to Cookies created via CGI.pm and CGI::Cookie incorrectly made by skazat

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.