Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PerlScript Engine Problem (Restart?)

Status
Not open for further replies.

redgenie

Programmer
Aug 10, 2000
36
GB
I keep getting strange errors when using PerlScript (on Windows 2000 with IIS).

After an indeterminate period of scripts working just fine they start to fail with strange errors messages such as:

Code:
500 Can't locate object method "configure" via package "Net::HTTP" (perhaps you forgot to load "Net::HTTP"?)



Is there any way to restart the PerlScript engine?, obviously I don't want to keep rebooting the server. Then I can move on to what actually the problem is.
 
Hello,

You should have this code somewher in your script, before oyu use any objects from the module:

use Net::HTTP;

Is it there?
 
No it is not that, as I was saying the script works just fine for an inderminate length of time then suddenly stops working for whatever reason. Not sure if it's the number of times the script is run or a time period period (more likely the first). Adding that makes no difference believe me that was one of the first things I tried.

The root of the problem very probably lies in the PerlScript environment running out of memory space or something like which means it cannot load required packages etc. but that's something I'll start investigating later.

Thanks for your suggestion but what I really need at the moment is how to restart the PerlScript engine so I don't have to reboot the machine to get it working again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top