Ricardo Vazquez Armenta > Data-Reporter-1.4 > Data::Reporter::Filesource

Download:
Data-Reporter-1.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Filesource - Reporter handler for plain text information

SYNOPSIS ^

use Data::Reporter::Filesource;

 $source = new Data::Reporter::Filesource(File => $file);
#                       $file                   - source filename

 $subru = sub {print "record -> $_\n"};
 $source->getdata($subru);
 $source->configure(File => $file);

DESCRIPTION ^

new()

Creates a new handler to manipulate the file information.

$source->configure(option => value)

File File with the information to process. It is the only valid option at this moment

$source->getdata($subru)

For each record in the file, call the function $subru, passing the record as a parameter

NOTES ^

"|" is the field separator.

syntax highlighting: