$setNumber
and the problem number os $probNum
or questionNumber
You can find out all the variables available to you by loading PGinfo.pl
and issuing the command
listVariables();This will print out all the variable names and values, plus the form values sent to the page by the last submit or check-answer button press.