http://qs321.pair.com?node_id=147010

BlueLines has asked for the wisdom of the Perl Monks concerning the following question:

This came from a coworker. Consider this:
#!/usr/bin/perl -w my $foo = { c => {} }; my $records = [ $foo ]; $records->{c} = 1;
What happens when this is run?
[jon@opiate jon]$ ./foo.pl Out of memory! [jon@opiate jon]$ perl --version This is perl, v5.6.0 built for i386-linux
Why is this?

BlueLines

Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.

Edit kudra 2002-02-23 Added to title