NAME

Para::Frame::Spreadsheet - Access data in diffrent source formats in a uniform way

SYNOPSIS

  use Para::Frame::Spreadsheet;
  use IO::File;

  my $fh = new IO::File "my_file";
  my $type = "text/x-csv";

  my $sh = new Para::Frame::Spreadsheet($fh, $type);

  $sh->get_headers;

  while( my $row = $sh->next_rowhash )
  {
     foreach my $col ( $sh->headers )
     {
       print $row->{$col} . "\t";
     }
     print "\n";
  }

DESCRIPTION

Handles mostly CSV and XML.

Methods

new

get_headers

add_headers

For adding extra headers, for fields added in row_filter

headers

rowhash

next_rowhash

SEE ALSO

Para::Frame