Log::Accounting::CSV - Accounting CSV format Data


Log-Accounting-CSV documentation  | view source Contained in the Log-Accounting-CSV distribution.

Index


NAME

Top

  Log::Accounting::CSV - Accounting CSV format Data

SYNOPSIS

Top

  my $acc = Log::Accounting::CSV->new(file => 'log.csv');
  $acc->process;
  $acc->report;

DESCRIPTION

Top

This module make the use of Algorithm::Accounting, and generate accounting information from general CSV files. It parse CSV file, and feed rows into an Algorithm::Accounting object, and provides result() wrapper which return the result.

You may set a first_line_are_fields flag parameter to indicate the first line of given CSV file are actually field names. So Log::Accounting::CSV would automatically generate field names for you. Otherwise you'll have to provide field names by yourself.

You may give an only_fields parameter (arrayref) to indeicate that you only want to generate the result for these fields. It'll save much memorry while the among of data is huge.

COPYRIGHT

Top


Log-Accounting-CSV documentation  | view source Contained in the Log-Accounting-CSV distribution.