Informational Functions

The following list includes both WebAssign-specific and commonly-used Perl functions that are available when creating questions.

Operation

Usage

Notes

Time submitted before due

&beforeDue('days')
&beforeDue('hours')
&beforeDue('minutes')

Returns the number of days, hours, or minutes before the assignment is due (including any granted extensions) that the question was submitted.

Assignment responses

get_data(deployID, 
studentID)

get_data(deployID, 
studentID, 
questionID)

Returns an array of one student's responses for an assignment (optionally, a single question on the assignment). Use $DEPLOYMENT_ID and $STUDENT to specify the current assignment instance and the current student.