The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Parse::Stallion::CSVFH - Comma Separated Values from file handle

SYNOPSIS

NOTE: this is still under the testing phase

  use Parse::Stallion::CSVFH;

  my $csv_stallion = new Parse::Stallion::CSVFH;

  my $file_handle;
  open $file_handle, "<", "csv_file";

  my $result = eval {$csv_stallion->
   parse_and_evaluate({string=>$file_handle})};

  if ($@) {
    if ($stallion->parse_failed) {#parse failed};
  }
  # else $result contains reference to array of arrays

DESCRIPTION

Reads a comma separated value file or string, returning a reference. to an array of arrays (or of hashes).