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.
In reply to Re: Does Perl have a baked-in memory llimit?
by Anonymous Monk
in thread Does Perl have a baked-in memory llimit?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |