I have a very strange problem with a large cgi program that I'm developing on a windows machine with ActiveState perl. I have a hash loaded with the values of the browser's cookie so that the many modules that make up the cgi program can easily access the user's state. When the user turns off cookies in the browser, this hash still exists, it just contains no keys.

It works just great when the user sends a cookie to the server, but something breaks when no cookies are sent. When I use this hash in a boolean test ( ie. $hash{key}>3 ) the process hangs with no error output. It just sits there doing nothing and taking up no cpu cycles. When I move this program to a linux server with the same version on perl it works just great whether or not the user has cookies on. I'm hopeing this is a bug in the windows port of perl, but I'm not going to hold my breath. Any thoughts would be appreciated.

PS: Sorry that I can't post any code, but it's too large and really wouldn't help much anyway.


In reply to Mysterious ActiveState Perl Hangs by caedes

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.