in reply to Re^2: Preserve array contents in for() loop
in thread Preserve array contents in for() loop

Thanks Dave. I am learning more and more that all possible Perl questions have already been answered... one just has to read the docs.

That said, I guess I use Dumper so much that I didn't even notice what it was saying to me...

#!/usr/bin/perl # test.pl use strict; use Data::Dumper; my @foo = ('a', 'b', 'c');

When I run the above, I get...

> test.pl $VAR1 = 'a'; $VAR2 = 'b'; $VAR3 = 'c';
I didn't even notice that it was reporting each variable separately and not as a part of an array.

I go looking for trees, and forget that I am in a forest.