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

Re: [MacPerl] Out of memory messages



First off, have you tried allocating more RAM to MacPerl?  Also, you have chosen
the most memory gobbling code.  Try changing:

>@newsgroups = <FILE>;
>print @newsgroups;

into

print while ( <FILE> );

This code will execute even if the file has millions of lines and/or is several
gigabytes in size.  However, I believe that the MacPerl window can only display
32k of that data at any one time, so you won't be able to see all of the data no
matter which method you choose.

>Also, I tried to split a range of array elements
>
>@goodgroups = split /,/, @newsgroups[12.. $#newsgroups]

This will probably not work the way that you expect.  'split' takes a scalar as
its 2nd parameter, so in the above case it will split will on $#newsgroups.

-Alex

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