Re: Offline editor.

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 12/26/00


Patrick Dughi wrote:
>
>         The part I'm questioning though is how to write the configuration
> file.  Right now I'm torn between two types:  c-style or markup-style
>
How about Perl format?

list:

@list = ('entry 1',
         'entry 2',
         'entry 3');

hash: (allows key/value pairs)

%hash = ('key 1', 'entry 1',
         'key 2', 'entry 2',
         'key 3', 'entry 3')

or...

%hash = ('key 1' => 'entry 1',
         'key 2' => 'entry 2',
         'key 3' => 'entry 3')

The idea of a hash could come in handy as it would allow things like
defining an entire mob in the single hash simply by setting the keys to
the mob's various attributes.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT