Dave Rolsky wrote:
On Thu, 26 Apr 2007, RA Jones wrote:
OK, thanks I can see the merit in that. But on the other hand is it
really a good idea to put the same 'use' statement so many times in
what could amount to 20 or more controllers? Is there a start-up
penalty if I have to load multiple modules in each controller
separately instead of once each in MyApp.pm?
Yes, it _really_ is a good idea. I'm going to write an essay/rant on
what being a professional developer means in my use perl journal soon,
and part of that will talk about how the audience for code that you
write is the next developer. This is writing code for the next developer.
There's very little penalty to pay. The Perl interpreter only loads a
module once, so multiple use statements for the same module just involve
checking to see if its already loaded. Premature optimization is the
root of all evil, and this would be beyond premature.
Very interesting, and very useful info. Many thanks.
--
Richard Jones
Leeds, UK
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/