in reply to Attempt to free unreferenced scalar
Are you using threads in the program? This is actually a perl internal error which you should rarely see.