Data::Iterator::Hierarchical

Iterate hierarchically over tabular data.
Download

Data::Iterator::Hierarchical Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brian McCauley
  • Publisher web site:
  • http://search.cpan.org/~nobull/String-Interpolate-0.3/lib/String/Interpolate.pm

Data::Iterator::Hierarchical Tags


Data::Iterator::Hierarchical Description

Iterate hierarchically over tabular data. Data::Iterator::Hierarchical is a Perl module to iterate hierarchically over tabular data.SYNOPSIS my $sth = $db->prepare((my $it_co, 1)) { print "agent=$agent "; while( my ($co,$co_name) = $it_co->(my $it_sound, 2) ) { print " co=$co, co_name=$co_name "; while( my($sound) = $it_sound->() ) { print " sound=$sound "; } } }This module allows nested loops to iterate in the natural way over a sorted rowset as would typically be returned from an SQL database query that is the result of naturally left joining several tables.In the example from the synopsis we want an interator that loops over agent. Within that we want another interator to loop over country (code and name). Finally within that we want to loop over sound.And mostly that's all there is to say the iterator should just "Do What I Mean" (DWIM). Requirements: · Perl


Data::Iterator::Hierarchical Related Software