in reply to Locale::Maketext Scoping Question

Just call 'get_handle()' for each request and make that handle available to every part of your app that needs it. Getting the language handle is a fairly lightweight operation (just resolving the available language/s into the right class) and trying to use a handle per apache process is serious premature optimization.

M-x auto-bs-mode

Replies are listed 'Best First'.
Re^2: Locale::Maketext Scoping Question
by jk2addict (Chaplain) on Mar 24, 2005 at 13:39 UTC

    Thanks. I wasn't really trying to optomize per se. I just didn't want to be in the position later of having no L10N working due to an unknown scoping practice on my part witrh Locale::Maketext.