Given an object:

let's use system/options/cgi 

I would like to traverse the object
and print out the values only, each preceded by
a custom label.

I know that to use print mold system/options/cgi
will dump the object. But I want to
just extract the values and concatenate them
with a customized label.

So that instead of 
make object! [
    server-software: none
    server-name: none
    gateway-interface: none
    server-protocol: none
    server-port: none
    request-method: none
    path-info: none
    path-translated: none
    script-name: none
    query-string: none
    remote-host: none
    remote-addr: none
    auth-type: none
    remote-user: none
    remote-ident: none
    Content-Type: none
    content-length: none
    other-headers: []
]
I will have:

    Server Software:  none
    Server Name: none
    ; etc......

I believe that I will also need to code a block like
cgi-labels: ["Server Software" "Server Name"]

and iterate simultaneously through the object and
the block.

Will give a nice professional looking "dump" of
the cgi environment, and will also edify me on
the process of interating blocks and objects.

Thanks in advance 
Tim

Reply via email to