CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Error I dont know how to fix...



Dec 5, 2000, 1:54 PM

Post #1 of 2 (299 views)
Error I dont know how to fix... Can't Post

I keep getting a "Out of Memory" error in my Perl program...

My Program has a total of: 1102 lines of code, across 5 files(4 are Require files).

And I have these Moduals included:
use Socket;
use Mail::Sender;
use Cwd;

And this is the last lines of code I added before it started giving the Error:
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

elsif ($_temp =~ /^delete (.+)/i && exists($mail{$_temp_name}))
if (exists($mail{"$_temp_name $1"}))
if ($mail{"$_temp_name $1"} =~ /^Currently, you have No Message Here./i)
raw("wh $_temp_name [HD:Mail] Why would you want to delete a message that doesnt Exist\? [You currently have $mail{"$_temp_name"} messages in your Inbox.]");
$mail{"$_temp_name"} = "$mail{"$_temp_name"} - 1";
$mail{"$_temp_name $1"} = "Currently, you have No Message Here.";
raw("wh $_temp_name I am sorry, You cant delete a message that don't Exists.");

Could this just be because I am using windows? Or could it be a Perl Problem...

Anyway, any help will be Apreciated.
-Thankyou, KaoAtlantis

Enthusiast / Moderator

Dec 5, 2000, 5:30 PM

Post #2 of 2 (299 views)
Re: Error I dont know how to fix... [In reply to] Can't Post

I came accross the same problem, what it was, is the file I was trying to run the script on was too big for my memory to take in all at once, i don't know how to divide the use of the system memory, iif possible, but When I split the file into half, or actually 5 pieces in my case, it worked fine, My code was only about 8 line long, and I was getting the same error, that should tell you that the length of your code doesn't produce the error, but what it's doing and with how big of a file,

Hope that helps a little,



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives