jmo has asked for the wisdom of the Perl Monks concerning the following question:
Here's an example that consumes all my memory at least: perl -e 'use strict; my $a = { child1 => [ {child2 => [ { child3 => [ +{child4 => [ 1 ] } ] } ] } ] }; print $a->{child1}{child2}{child3}{ch +ild4}, "\n"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl eats all memory when accessing hash/array refs wrong
by Abigail-II (Bishop) on Sep 25, 2003 at 10:56 UTC | |
by demerphq (Chancellor) on Sep 25, 2003 at 11:24 UTC | |
by Anonymous Monk on Sep 25, 2003 at 12:11 UTC | |
by demerphq (Chancellor) on Sep 25, 2003 at 12:22 UTC | |
by tachyon (Chancellor) on Sep 25, 2003 at 11:16 UTC | |
|
Re: Perl eats all memory when accessing hash/array refs wrong
by tachyon (Chancellor) on Sep 25, 2003 at 10:51 UTC | |
|
Re: Perl eats all memory when accessing hash/array refs wrong
by graff (Chancellor) on Sep 26, 2003 at 05:01 UTC |