in reply to can't locate object method new in perl
Reduce the code to about 10 lines we can run and see the problem.