Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-12-27 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls