in reply to AUTOLOAD & mod_perl memory

It depends. If you don't call these very often, leave them as AUTOLOADs. If you do call them often, build them automatically in a BEGIN block. Why? So you can load them in startup.pl and share the memory between processes.

Replies are listed 'Best First'.
Re: Re: AUTOLOAD & mod_perl memory
by bsb (Priest) on Dec 03, 2002 at 05:21 UTC
    Thanks. That's a good point.

    I need an AUTOLOAD since the attribute list can change at runtime. But you're right, I should define the common and repeatedly called accessors a compile time.

    Thanks, Brad