pg has asked for the wisdom of the Perl Monks concerning the following question:
my @a = (); $a[0] = \@a; my $expr = '$a[0]'; my $index; for ($index = 0; $index < 1000; $index ++) { $expr = "\${$expr}[0]"; } print $expr, "\n"; eval "print $expr";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Guess what is the print out?
by dws (Chancellor) on Nov 11, 2002 at 05:27 UTC | |
|
Re: Guess what is the print out?
by diotalevi (Canon) on Nov 11, 2002 at 05:22 UTC | |
|
Re: Guess what is the print out?
by submersible_toaster (Chaplain) on Nov 11, 2002 at 05:17 UTC |