Hi, you can use PerlSetVar directive in your apache config and then access variable values with dir_config.
Ex: in apache: PerlSetVar MyAlmightyConstant "heihfi23857278957289" In your mason code: $r->dir_config('MyAlmightyConstant'); This is a mod_perl feature. Cheers, Jerome. On Tue, Mar 3, 2009 at 2:31 PM, Louis-David Mitterrand <vindex+lists-mason-us...@apartia.org> wrote: > On Tue, Mar 03, 2009 at 06:30:00AM -0800, Jonathan Swartz wrote: >> Can you be more specific about "variables"? Are these constants that >> change on a page-by-page basis, but otherwise don't need to change >> during the request? Do they have a lifetime of one request or longer >> than that? > > They are static variables, like for example google adsense code. > > -- > http://www.critikart.net > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Jerome Eteve. Chat with me live at http://www.eteve.net jer...@eteve.net ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users