On Mon, 10 Jul 2000, Drew Taylor wrote:

> My underlying concern is that each time the code is run, I get "clean"
> variables. Every variable is a lexical. If that is enough to guarantee
> emptiness on each run, then initialization is unnecessary (and in fact a
> performance decrease).

Provided your lexicals aren't closures, then yes, they get initialized on
each hit. CPAN modules only tend to initialise variables that cause that
damnable "use of uninitialized variable", well, that's what mine do,
anyway. Or alternatively, create your variables where you initially set
their value, rather than the old C method of a list of variable
declarations (which is only really a win for typed variables).

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org

Reply via email to