Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Does Perl have a baked-in memory llimit?

by Anonymous Monk
on Nov 12, 2023 at 17:48 UTC ( [id://11155580]=note: print w/replies, xml ) Need Help??


in reply to Does Perl have a baked-in memory llimit?

As another attempt for rational explanation (silly thing without code sample and error message), you may have inadvertently put call to slurp into list context, like:

my $json = JSON->new->decode( read_file($file) );

which then tries to split 5e8 bytes to presumably quite short lines, and may consume a few of 1e9 bytes of RAM long before JSON complains about wrong usage.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11155580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2025-05-21 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.