Philip Mak wrote:
>
> What's an efficient way of declaring constants (as in variables which I
> set the value of once, and then don't change them again and only read from
> them) in Apache::ASP?
>
> I've been just putting e.g.:
>
> %messages = {
> new => 'Series created.',
> addalias => 'Alias created.',
> delalias => 'Alias deleted.',
> rename => 'Series rename done.'
> };
>
I like global.asa for this kind of stuff. If you are using
UseStrict, then "use vars qw( %messages )" would be how you
declare your globals. This won't work if UniquePackages
is set however.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks <- Web Link Checking Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]