Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Locale::Maketext Scoping Question

by lachoy (Parson)
on Mar 24, 2005 at 03:44 UTC ( #441949=note: print w/ replies, xml ) Need Help??


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.

Chris
M-x auto-bs-mode


Comment on Re: Locale::Maketext Scoping Question
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.

    -=Chris

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://441949]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-09-30 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (383 votes), past polls