On Tue, 2004-07-20 at 18:47 -0700, Randal L. Schwartz wrote:
> >>>>> "Shawn" == Shawn  <[EMAIL PROTECTED]> writes:
> 
> Shawn> 1. display a hash of both key/value pairs, hashes, or arrays, fully
> Shawn> expanded
> Shawn> 2. be able to edit key/value pairs in the structure through the CGI form
> Shawn> 3. add or delete key/value pairs, or empty sub-hashes
> 
> Shawn> Even a pretty display of a hash tree would be nice.
> 
> That's about 200 lines of code, unless there's some module I'm
> not aware of.

;) That was exactly what I was fishing for. One I wasn't aware of.

It seems the printing of a hash is somewhat trivial with a couple
modules, though I still have to see if their respective output fits a
possibly-long-list-of-objects paradigm nicely. *pant* ... Sorry, just
got back from 20mi bike ride up some nasty hills. Fucking bugs at
dusk... *hack* ... *spit*

There's also a module that /seems/ to accept a HoH stuct to display a
popup select tree, which could be used to guide printing some k/v add/
edit forms. Attach a submit, some data rules, Woo hoo.

All in all, I guess my goal is a HoH designer, so that arbitrary data
structures can be stored and displayed.

Efficiency is not important at this point... I really would like some
sort of browser side display eventually, but learning JS or whatever
isn't high on my list.

> I come up with this number from having written 200 magazine articles
> (and counting) and having to estimate a task based on whether or not
> I could cover it nicely in one magazine article, where 100 lines of
> code is just about right.


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to