File/Slurp module

Uri,

When I try to parse one of my raw files I get the following error:

Out of memory during "large" request for 536875008 bytes, total sbrk() is 8=
80640 bytes at /usr/lib/perl5/site_perl/5.10/
File/Slurp.pm line 159.

Since you created the File::Slurp module I was curious if you knew what the=
fix is?

Thank you,

Chris


--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Chris Stinemetz [ Sa, 19 März 2011 20:30 ] [ ID #2056876 ]

Re: File/Slurp module

--0015174fed6cfa79fe049edb029f
Content-Type: text/plain; charset=ISO-8859-1

Googling your error:
http://stackoverflow.com/questions/1918672/why-does-git-pm-o n-cygwin-complain-about-out-of-memory-during-large-request

Brian.

On Sat, Mar 19, 2011 at 4:30 PM, Chris Stinemetz <
cstinemetz [at] cricketcommunications.com> wrote:

> Uri,
>
> When I try to parse one of my raw files I get the following error:
>
> Out of memory during "large" request for 536875008 bytes, total sbrk() is
> 880640 bytes at /usr/lib/perl5/site_perl/5.10/
> File/Slurp.pm line 159.
>
> Since you created the File::Slurp module I was curious if you knew what the
> fix is?
>
> Thank you,
>
> Chris
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
> For additional commands, e-mail: beginners-help [at] perl.org
> http://learn.perl.org/
>
>
>

--0015174fed6cfa79fe049edb029f--
Brian Fraser [ Sa, 19 März 2011 20:36 ] [ ID #2056877 ]

Re: File/Slurp module

>>>>> "CS" == Chris Stinemetz <cstinemetz [at] cricketcommunications.com> writes:

CS> Uri,
CS> When I try to parse one of my raw files I get the following error:

CS> Out of memory during "large" request for 536875008 bytes, total sbrk() is 880640 bytes at /usr/lib/perl5/site_perl/5.10/

CS> File/Slurp.pm line 159.

CS> Since you created the File::Slurp module I was curious if you knew what the fix is?

simple. don't slurp super large files. the article included with the
module says that. anything reading that much in will wipe out virtual
ram and such. slurp doesn't do anything special regarding large
files. if you read it with other code it would still blow up.

uri

--
Uri Guttman ------ uri [at] stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Uri Guttman [ So, 20 März 2011 03:47 ] [ ID #2056891 ]
Perl » gmane.comp.lang.perl.beginners » File/Slurp module

Vorheriges Thema: upgraded Macports broke working Perl environment
Nächstes Thema: Parse Key=Val parameters with s///eg