Probably an asked question: How do I create a tied hash so that when I retrieve the keys, I get it back in the order I inserted inside of TT2?. Example:
 
[% hash = {
        >
        two = 2,
        three = 3
       };
%]
 
[% FOREACH key IN hash.list('keys');
     "$key\n";
     END;
%]
 
I'd like it to print
one
two
three
 
every time, deterministically. In regular perl, we use Tied hashes to achieve this effect. How do I do this TT? Obviously, I don't want to use the sort method, since my keys are random.
 
Thanks
Subbu

Reply via email to