Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

iterators: traversing arbitrary data structure

by dimar (Curate)
on Jan 11, 2006 at 20:35 UTC ( [id://522560]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $oWkBook    = {
        students =>[
    ...
            {fname=>'dill',lname=>'mill',age=>'56'},
        ],
    };
    
  2. or download this
    ### iterate (current)
    for my $oWkSheet (keys %{$oWkBook}){
    ...
            };
        };
    };
    
  3. or download this
    ### iterate (wanted)
    for my $item ($oWkBook->iterate_fields()){
        $item   =~ s/^\s+\n$//;
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://522560]
Approved by Old_Gray_Bear
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-26 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found