# How to loop through the first layer: What is in @info? print "\$info:\n"; foreach my $info_item (@info) { print " []='$info_item'\n"; }
Results:
D:\PerlMonks>lists2.pl $info: []='Mary,Owens,cat,white' []='Bill,Thompson,(cat,dog),(white,black)' []='Bill,Thompson,(hamster,cat),(black,brown)' []='Bill,Smith,(goldfish,dog,turtle),(yellow,spotted,green)'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Struggling with complex data structures and doing useful operations on their elements and populating from arrays
by hiyall (Acolyte) on Mar 12, 2015 at 14:10 UTC | |
by marinersk (Priest) on Mar 12, 2015 at 14:22 UTC | |
by marinersk (Priest) on Mar 17, 2015 at 22:04 UTC |