Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-05-28 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?