in reply to $ENV{HTTPS_PROXY} works in one environment but not another
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $ENV{HTTPS_PROXY} works in one environment but not another
by bigdatageek (Novice) on Sep 29, 2015 at 15:02 UTC | |
|
Re^2: $ENV{HTTPS_PROXY} works in one environment but not another
by bigdatageek (Novice) on Sep 29, 2015 at 15:11 UTC | |
by tye (Sage) on Sep 29, 2015 at 16:33 UTC | |
by bigdatageek (Novice) on Sep 30, 2015 at 12:37 UTC | |
by tye (Sage) on Sep 30, 2015 at 13:05 UTC |