[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Getting a catalog variable with perl
>
> I have an entry in my catalog.cfg file:
>
> Variable RSOCKET 192.168.3.4:12000
>
> I know I can reference this on a page as __RSOCKET__.
>
> Can I get at it in Perl code?
>
Two ways, for use in [perl], [calc], [mvasp] etc.:
my $var1 = q{__RSOCKET__};
my $var2 = $Variable->{RSOCKET};
A third way, for use in UserTags:
my $var3 = $::Variable->{RSOCKET};
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/