[ic] interpolating variable names?

Jud Harris interchange-users@interchange.redhat.com
Thu Sep 20 17:09:00 2001


Beautiful.  that works great.. thanks so much..  Is there any
performance difference between calling perl or using ITL?

-Jud

On Thu, 2001-09-20 at 15:53, Dan Browning wrote:
> At 04:48 PM 9/20/2001 -0400, you wrote:
> >On Thu, Sep 20, 2001 at 03:10:57PM -0500, Jud Harris wrote:
> > > Is it possible?  How can I make this work...
> > >
> > > [set x]1[/set]
> > > [set y]2[/set]
> > > [set z]3[/set]
> > >
> > > [set var[scratch x]]red[/set]
> > > [set var[scratch y]]green[/set]
> > > [set var[scratch z]]blue[/set]
> > >
> >[perl interpolate=1]
> >         $Scratch{'var'.$Scratch->{x}} = 'red';
> >         $Scratch{'var'.$Scratch->{y}} = 'green';
> >         $Scratch{'var'.$Scratch->{z}} = 'blue';
> >[/perl]
> 
> Or if you really want ITL...
> 
> [seti name="var[scratch name=x]"]red[/seti]
> 
> ...might work.  HAND,
> 
> Dan Browning <danpb@mail.com>
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>