Re: [Templates] multilevel hash to table, plus bonus question

[prev] [thread] [next] [Date index for 2004/09/03]

From: Jamie Echlin
Subject: Re: [Templates] multilevel hash to table, plus bonus question
Date: 14:15 on 03 Sep 2004
Thanks for the response Dave.

> This is something you'd have a hard time doing even in Perl.

Hmm, I thought maybe TT would make it easy for me by not treating "A.B" 
as a hash key but as two keys, but I guess yep, I am asking the 
impossible, or the unlikely at least.

 > Just out of curiosity, why do you need to show portions of a
 > multi-level hash in a flattened representation?

Well, that's just what my API returns, a hash ref with that sort of 
structure. I will probably write something that recurses through the 
hash and creates multiple levels of table headers but I was just going 
for something super quick and dirty.

Next qn: Sometimes my API returns an IxHash, ie an ordered hash. When 
this happens I cannot use the hash virtual methods, although they all 
make logical sense. IxHash has methods like Keys Values similar to the 
vmethods, but the case is different. Any ideas here?

thanks, jamie


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Simple Error Question
Denis Banovic 09:01 on 03 Sep 2004

Re: [Templates] Simple Error Question
Dave Cross 09:05 on 03 Sep 2004

[Templates] multilevel hash to table
Jamie Echlin 10:26 on 03 Sep 2004

Re: [Templates] multilevel hash to table
Dave Cash 13:38 on 03 Sep 2004

Re: [Templates] multilevel hash to table, plus bonus question
Jamie Echlin 14:15 on 03 Sep 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52