[ic] Cart programming question

Steffen Dettmer interchange-users@interchange.redhat.com
Sun Mar 17 15:38:01 2002


* Mike Heins wrote on Sun, Mar 17, 2002 at 15:09 -0500:
> Quoting Steffen Dettmer (steffen@dett.de):
> > * Mike Heins wrote on Sun, Mar 17, 2002 at 14:06 -0500:
> > > It won't do that if the string is formatted properly.
> 
> No. I don't know if you know what is happening here.
> 
> [pragma safe_data]
> [calc]
> 	my $ref = [data table=foo col=bar key=baz];
> [/calc]
> 
> The data tag is interpolated before the Perl code is evaluated.
> If the string coming from the data tag is correct, the code
> will be valid.

Ahh, I see. Thank you for clarification! Of course my test were
not working since I missed the "safe_data", the output was HTML
rendered, so a copy & paste from browser to command line worked
and I thought the string is correct. Now I understand it (I hope
:)).

Now I used a usertag and the Safe::reval, which works. Is this a
bad way of going?

Thank you for your help and the phenomenal "on weekend" support!

oki,

Steffen

-- 
Dieses Schreiben wurde maschinell erstellt,
es trägt daher weder Unterschrift noch Siegel.