[ic] Re: variables

ic at 3edge.com ic at 3edge.com
Thu Jul 28 17:25:46 EDT 2005


Webmaster Grandfather Clocks Plus writes: 

> Okay this should be easy, but I don't know enough about Interchange or Perl.
> I'm just trying to make a basic variable that I can put into some html code,
> this is what I'm trying to do: 
> 
> [perl]
> $site = "icdevgroup";
> return $site;
> [/perl]

[perl]
$Scratch->{site} = "icdevgroup";
[/perl] 

> 
> <html>
> <a href="www.$site.org">ICDEVGROUP.ORG</a>

<a href="www.[scratch site].org">ICDEVGROUP.ORG</a> 

But using the perl block is probably a waste of resources etc ...
You can just set a (scratch) variable by: 

[set site]icdevgroup[/set]
and call it with [scratch site] 

> </html> 
> 
> I can't get this to work, anyone have any idea on how I should go about
> this. Sorry for the basic question.  
> 
> Thanks,
> Brian 
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
 



More information about the interchange-users mailing list