Perl Monk, Perl Meditation | |
PerlMonks |
Why would LWP::Simple::get stop working?by dpmott (Scribe) |
on Jun 20, 2005 at 18:52 UTC ( [id://468453]=perlquestion: print w/replies, xml ) | Need Help?? |
dpmott has asked for the wisdom of the Perl Monks concerning the following question:
(post updated 06/20/2005 17:00) I have a number of scripts that run automatically for me on my WinXP Pro box running ActiveSTate Perl 5.8.0 build 806. For the last serveral days these scripts have not been working for me. My environment variables (i.e. http_proxy and such) have not been changed. I don't use a proxy. So, I run them by hand. On a line like this: my script locks up. At a command line on the same box, I can type: where URL is the same as what is in the script. That works fine, presumably because GET.pl uses LWP::UserAgent. Putting that assumption to the test, I wrote this small script:
I can run this script on a *NIX box with no problem. On my WinXPPro box, however, the $ua->get() works but then it never gets past the LWP::Simple::get() call. Note that the scripts that are now failing have not been modified in weeks, if not months. So, this post is both a question for help and a poll to see if anyone else on WinXP is having similiar problems with their LWP::Simple::get functionality. So, has anyone else seen a problem like this? If so, how do I fix it? Update: After uninstalling/reinstalling ActiveState Perl, my LWP modules seem to be working fine. Honestly, I haven't modified my environment or Perl installation in over two weeks, so I really can't fathom what could have changed. I appreciate everyone's feedback on this thread. I've learned a lot about the LWP modules and how to keep them happy :)
Back to
Seekers of Perl Wisdom
|
|