Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 meditating upon the Monastery: (4)
As of 2014-09-22 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (189 votes), past polls