AC::MrGamoo::ReadInput - read input records
emacs /myperldir/Local/MrGamoo/ReadInput.pm copy. paste. edit. use lib '/myperldir'; my $m = AC::MrGamoo::D->new( class_readinput => 'Local::MrGamoo::ReadInput', );
In your map/reduce job, your map function is called once per record. The readinput function is responsible for reading the actual files and returning records.
map
readinput
The default readinput returns one line at a time (just like <FILE>).
If you want different behavior, you can provide a ReadInput class, or spoecify a readinput block in your map/reduce job.
ReadInput
Your function should return an array of 2 values
the record data
have we reached the end-of-file
none. you write this yourself.
AC::MrGamoo
You!
To install AC::MrGamoo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AC::MrGamoo
CPAN shell
perl -MCPAN -e shell install AC::MrGamoo
For more information on module installation, please visit the detailed CPAN module installation guide.