Apparently, some of the changes that I had made in the PGcourse.pl file locally conflicted with $CARET. I commented them out it back and it works fine. The comments here made it much easier to discover this. Thank you very much.
WeBWorK Main Forum
$CARET produces error in hard copy
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day