Re: "use" etiquette in mod_perl

2004-11-14 Thread Stas Bekman
[ Mark, please don't forget to CC the list ] Mark S Lowe wrote: Out of these two examples, the latter is the better for performance reasons right? As I've written in the original reply, they are exactly the same. >>sub foo { >> use Bar; >>} >> >>is the same as: >> >>use Bar; >>sub foo {} The latt

Re: "use" etiquette in mod_perl

2004-11-13 Thread Stas Bekman
Mark S Lowe wrote: Quick performance question: Will it kill performance to make sub routines in mod_perl call all their own use statements? For instance, I have several sub routines that need to query $q->param(foo), and I¹m curious if I should create a single instance of $q and pass it into all th