Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

iterators: traversing arbitrary data structure

by dimar (Curate)
on Jan 11, 2006 at 20:35 UTC ( #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
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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-05-23 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (465 votes), past polls