[Chicago-talk] Why do I need "use"

Jay Strauss me at heyjay.com
Mon Feb 27 18:31:48 PST 2006


there was a message on the DBI user list, where the guy wanted to know how to 

Can't locate object method "connect" via package "DBI" (perhaps you
forgot to load "DBI"?) at...

My question is: Why do you have to use "use"?  Perl is so forgiving in many 
cases, and you can load modules at runtime.  Why doesn't Perl just 
automatically load modules it discovers in the source?


More information about the Chicago-talk mailing list