PERL out of memory

From: Spalding, Stephen <SSpaldin_at_mem-ins.com>
Date: Tue, 21 Sep 1999 16:05:24 -0500

Hello all!

I realize that this is not completely a DU question, but it may be related.
I'm writing a program in PERL which needs to open a file of significant
size. The problem is that I get this error message when I attempt to do so:

> Out of memory during "large" request for 8392704 bytes at pcl_converter.pl
> line 126, <ORG_FILE> chunk 810230.
>
The section of code that opens the filehandle is:

      open(ORG_FILE,$PATH_AND_FILE) || die "Can't open '$PATH_AND_FILE'\n";
      _at_ORG_FILE = <ORG_FILE> ;
      close(ORG_FILE)

The file that I'm trying to read in is this:

-rw-r--r-- 1 bwaganer wcis 20872216 Sep 17 15:32
UW310RA_BM_1061629.00.l1

This looks like a limitation of Perl, but I thought that it also may have to
do with the vm limit settings of DU. I've looked in the O'Reilly PERL book,
but I couldn't find anything relevant in there.

Any suggestions or ideas?

Thanks!

-Stephen Spalding
Received on Tue Sep 21 1999 - 22:39:03 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT