[ic] [query] hashref into scratches... this should work me thinks
Gert van der Spoel
gert at 3edge.com
Thu Dec 2 23:00:42 UTC 2010
> I am not perl guru, but from what I read in the docs and archives, I
> believe this should work but I'm not getting any joy.
>
> [query table=mytable ml=1 hashref=foo sql=|
> SELECT bin, bat, baz
> FROM mytable
> WHERE code = 1001
> | /]
> [calc]
> my %bar = $Tmp->{foo};
> while (my ($k,$v) = each %bar) { $Tag->tmp($k, $v) }
my $bar = $Tmp->{foo};
while (my ($k,$v) = each %$bar) { $Tag->tmp($k, $v); }
Something like that perhaps ... %bar = a hash, but $Tmp->{foo} is a hashref
.. hence $bar and %$bar in the each ...
If not working, what errors do you get to see, are they Perl errors, or ITL
errors?
CU,
Gert
More information about the interchange-users
mailing list