hi
i'm using a hash of arrays like this:
perl:
----
my %hash_of_user_values;
$hash_of_user_values{fld_str_cust_name} = ['Name', $val_str_cust_name];
$hash_of_user_values{fld_str_cust_address} = ['Adsress', $val_str_cust_address];
Template:
--------
FOREACH key = hash_of_user_values.keys;
FOREACH innerKey = hash_of_user_values.$key;
...
END;
END;
the above works beautifully, but now i would like to maintain the
insertion order.
as soon as i try to tie the hash the code breaks, but only in the
template (?).
if i print directly in the perl code i can see the hash is tied
correctly in insertion order.
in perl i do:
use Tie::IxHash;
tie my %hash_of_user_values, "Tie::IxHash";
can't TT handle a tied hash or does it handle it another way ?
thanks
./allan
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates