[ic] Using $Global::UrlJoiner in Sub bar_link

Mike Heins mike at perusion.com
Mon Sep 27 12:01:53 EDT 2004

Quoting Karl Eaves (karl at eaves.name):
> I  want to add a few more options to the bar_link code and I use 
> UrlSepChar in interchange.cfg to use : as my seperator. How do I refer 
> DIRECTLY to the variable $Global::UrlJoiner is the bar_link code? I have 
> tried different things and the only one that works is by using a UserTag 
> that returns $Global::UrlJoiner; I see this as a bad hack because the 
> [loop-exec] tag is there for speed. Invoking an object method each time 
> is a bit of an overhead I`m not proud of.  I guess it is something to do 
> with bar_link being in the before_catalog.cfg and the Sub statement.

that is a default autovariable setting, so you can do:

	my $j = '@@UrlJoiner@@';

or better 

	my $j = $Tag->var('UrlJoiner', 1);

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

p.s. sorry for lower case, injured hand

Opportunity is missed by most people because it is dressed in
overalls and looks like work. -- Thomas Edison

More information about the interchange-users mailing list