in reply to XML Parsing Out of Memory error
Produces 'Out of memory!' when ranuse strict; my $ref; $ref->{'hash'}->[0]->{'hash2'}->{'hash3'} = 'go go gadget autovivify!' +; print $ref->{'hash'}->{'hash2'}->{'hash3'};
While this:
produces 'Bad index while coercing array into hash at t3.pl line 6.'use strict; my $ref; $ref->{'hash'}->[0]->{'hash2'} = 'go go gadget autovivify!'; print $ref->{'hash'}->{'hash2'};
I tried a couple of different combinations, the trick to making it barf is to have TWO or more levels of referencing after the one you reference incorrectly.
This is Perl 5.6.1 on Redhat Linux 7.2
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML Parsing Out of Memory error
by Matts (Deacon) on Feb 28, 2002 at 19:39 UTC |