Are you using use strict; and use warnings;? Do they output anything? Does anything output anything prior to the hang? Have you tried putting print statements around what you believe is the problematic code to see what is going on? What OSs are we talking about here?

Please provide us some code to look at. Also, after you've ensured strict, warnings are in effect (to rule out anything silly, like an undefined variable), put a line like this: $DB::single = 1; directly above the code that you think is hanging, then on the command line, run your script with perl -d script.pl. This will open the debugger. Press c to 'continue' to the line that you put $DB::single = 1; on. Next, press s. This will 'step' through each line, and display the actual line of code prior to executing it. Keep hitting s until you have it hang, then post the lines of code just prior to it breaking.


In reply to Re: $ENV{HTTPS_PROXY} works in one environment but not another by stevieb
in thread $ENV{HTTPS_PROXY} works in one environment but not another by bigdatageek

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.