in reply to No errors listed

You should definitely be getting errors

BEGIN { th = "Something"; }

When I run the above code, I get the following error:
Can't modify constant item in scalar assignment at C:\test.pl line 3, near ""Something";"
BEGIN not safe after errors--compilation aborted at C:\test.pl line 4.

As you can see, this not only tells me where the error occurred, but what the error is. Do you have the full text of all output generated?