FW: SPUG: Perl IIS and Out of Memory error.

Padden, Greg Greg.Padden at metrokc.gov
Fri Oct 22 15:00:37 CDT 1999



-----Original Message-----
From: Padden, Greg 
Sent: Friday, October 22, 1999 12:54 PM
To: Padden, Greg
Subject: RE: SPUG: Perl IIS and Out of Memory error.


I found that the line:
my $date = strftime('%D',localtime);

Is causing the problem.

-----Original Message-----
From: Padden, Greg [mailto:Greg.Padden at metrokc.gov]
Sent: Friday, October 22, 1999 11:51 AM
To: spug-list at pm.org
Subject: SPUG: Perl IIS and Out of Memory error.


Hi all, hope you can shed some light on my problem.

I'm converting a perl bulletin board script over to a NT box running IIS and
use the CGI.pm module for the first time..

When I run the following script, and after I enter the subroutine
process_post, I get an  "Out of memory"??? error on the output page.

I have sucessfully opened and closed the same file in a previous subroutine
using the code:

  open(BULLFILE, $STATUSBOARDFILE)|| bail ("cannot open $STATUSBOARDFILE
$!");

   my @filecontent = <BULLFILE>;
   close(BULLFILE);

Does anybody know why I get the out of memory error?  

sub process_post {

print start_html('Processing Post');
print "poster=".param('poster_name')."=<P>";
print "subject=". param('subject')."=<P>";
print "post_body=". param('post_body')."=<P>";
print end_html;


my $date = strftime('%D',localtime);


my @filecontent = <BULLFILE>;
close(BULLFILE);

print start_html('done with loading');
print "<P>Done with loading=<P>";
print end_html;



} # end of new_post subroutine



Greg Padden
Network Engineer, MCSE
King County Department of Infomation and Administrative Services
(206)263-4804 Fax:(206)263-4834



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    POST TO: spug-list at pm.org        PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
        Email to majordomo at pm.org: ACTION spug-list your_address





More information about the spug-list mailing list