in reply to Re^2: perl task...
in thread perl task...

No our course matewrials just cover how to write the code...not to fix the errors
So... have you talked to your professor?