bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monasterians:
We all know how to print the elements of an array:
my @Array = qw (aaaaa bbbbb ccccc); print @Array;
but is there an equivalent to print all the values of an AoH (or in this case, a reference to) withOUT iterating over it?
my $AoH = [{ keyname => "aaaaa" }, { keyname => "bbbbb" }, { keyname => "ccccc" }]; print $AoH; ???
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing all values of an AoH
by ambrus (Abbot) on Oct 16, 2004 at 19:38 UTC | |
|
Re: Printing all values of an AoH
by CountZero (Bishop) on Oct 16, 2004 at 20:10 UTC | |
by bradcathey (Prior) on Oct 16, 2004 at 20:33 UTC | |
by CountZero (Bishop) on Oct 16, 2004 at 20:59 UTC | |
|
Re: Printing all values of an AoH
by TedPride (Priest) on Oct 16, 2004 at 20:02 UTC |