http://www.perlmonks.org?node_id=1175206


in reply to can't locate object method new in perl

This code isn't even supposed to run due to the use Net::LDAP::E#ntry; on line 7, and you should get an error way before getting to the Text::CSV instantiation. Other than that, I don't see any issue with it, and on my Linux machine it compiles and run without even a warning.

Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert