The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AC::MrGamoo::ReadInput - read input records

SYNOPSIS

    emacs /myperldir/Local/MrGamoo/ReadInput.pm
    copy. paste. edit.

    use lib '/myperldir';
    my $m = AC::MrGamoo::D->new(
        class_readinput    => 'Local::MrGamoo::ReadInput',
    );

DESCRIPTION

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.

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.

Your function should return an array of 2 values

record

the record data

eof

have we reached the end-of-file

BUGS

none. you write this yourself.

SEE ALSO

    AC::MrGamoo

AUTHOR

    You!