Mechanical Turk > Net-Amazon-MechanicalTurk-1.02 > Net::Amazon::MechanicalTurk::Command::ParseAssignmentAnswer

Download:
Net-Amazon-MechanicalTurk-1.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Module Version: 1.00   Source  

NAME ^

Net::Amazon::MechanicalTurk::Command::ParseAssignmentAnswer - Parses the answer from a completed assignment.

Returns an object of type Net::Amazon::MechanicalTurk::QuestionFormAnswers for an assignment object.

SYNOPSIS ^

    my $assignments = $mturk->GetAssignmentsForHITAll( HITId => $hitId );
    while (my $assignment = $assignments->next) {
        my $answers = $mturk->parseAssignmentAnswer($assignment);
        $answers->eachAnswerValue(sub {
            my ($questionId, $answerText) = @_;
            print "%s = %s\n", $questionId, $answerText;
        });
    }
syntax highlighting: