[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: Out of memory error



   Strider wrote:

>Diagnostic Output
>
>Out of memory!
>
>is outputted when I use this script:

 ...

   I think this is the line that causes your "Out of memory" error:

>read(FILE, $data, 20000000);

   I don't know whether it's what you intended, but your code to test for
an empty field does nothing to prevent the rest of the script (including
this line) from running.

   Also, it looks like you're reading your data file just so you can append
to it.  This may be a better approach:

	open FILE, ">>classifieds.data";

--
Michael Burton     m-burton+@osu.edu     (614) 263-7948



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch