(RADIATOR) use GlobalVars in hooks

Lohier, Matthew Matthew.Lohier at pba.com.au
Thu Oct 6 18:04:33 CDT 2005


Oh yes, I've just done it actually.
I've set x as a global in config file. And then access it from a hook
using
	my $xx = &main::getVariable('KnownNumbers');
and
	&main::setVariable('KnownNumbers', 112);

But I don't known if you can use it as you suggested (with | ), maybe
store a reference to a list of values instead.

Anyway I used it like that in one hook:
my @list = get_list();
&main::setVariable('MyList', \@list);

And then in another hook:

my $list_ref = &main::getVariable('MyList');
my @list = @$list_ref;
...

Cheers / Matt

-----Original Message-----
From: owner-radiator at open.com.au [mailto:owner-radiator at open.com.au] On
Behalf Of Urban Edlund
Sent: Friday, 7 October 2005 5:16 AM
To: radiator at open.com.au
Subject: (RADIATOR) use GlobalVars in hooks

I would like to set GlobalVars in the config. Then use these GlobalVars
in a PreClientHook.

For example:

DefineFormattedGlobalVar 	KnownNumbers
"(0233444|02342455|012345211)"

Is it possible to do this ?

--
Regards
Urban

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.

----------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
----------------------------------------------------

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list