I have never used Sambar or IIS ... personally, if it's not Apache ... i don't consider it. I recommend you switch to Apache ... but that's just me.

Anyhoo ... here is some code ... but if you still haven't bothered to read Ovids' Web Programming with Perl then you should - it's free you know.

use strict; use warnings; use CGI qw(:standard); use CGI::Cookie; my %cookie = CGI::Cookie->fetch; if (exists $cookie{test}) { print header, start_html('got cookie'), p('found the cookie: ' . $cookie{test}->value), end_html, ; } else { my $cookie = CGI::Cookie->new(-name=>'test',-value=>12345); print header(-cookie=>$cookie), start_html('need cookie'), p('setting cookie, please reload'), end_html, ; }
Now go back and look at the code i gave you at (jeffa) 3Re: CGI.pm error and see if you can get it to work. Advice webstudorio: you don't need to be building a commercial shopping cart right now ... you need to learn Perl first. Go buy a copy of Learning Perl - after you read it and understand it then read Perl For Web Site Management.

Oh ... it's why, not 'whay'. And please, use code tags. You have been asked several times now and yet you still refuse to use code tags. You simply put a <code> tag on the line before your code and you put a </code> tag on the line after your code. Whay won't you listen? ;)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to (jeffa) 7Re: CGI.pm error by jeffa
in thread CGI.pm error by webstudioro

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.