Can AppConfig do this?
From: Eduardo (oso_at_uncoma.edu.ar)
Date: 11/24/03
- Next message: Martien Verbruggen: "Re: GD::Graph::Pie display values"
- Previous message: Bill McCormick: "GD::Graph::Pie display values"
- Next in thread: Ted Zlatanov: "Re: Can AppConfig do this?"
- Reply: Ted Zlatanov: "Re: Can AppConfig do this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Nov 2003 13:48:25 -0800
Hi, I need to prepare an AppConfig file for which I can't seem to find
the proper syntax. Let's assume the objects to be described are
printers, and I must encode some attributes for each of them. I would
be happy with this config file:
printer printer1
printer printer2
printer1 page 72
printer1 type A4
printer2 page 64
printer2 form B5
The catch is, I need the app to detach itself from the number or name
of printers. After reading this file I'd like to have n different hash
variables, each holding one printer's attributes. The number of
printers would vary among instances of the app. I'd need to be able to
iterate over the set of printers, that is, I imagine this set would
have to be represented by a list as per AppConfig.
I am really having trouble understanding AppConfig documentation as to
how to set the proper defines(). Can anybody give me a clue? TIA
- Next message: Martien Verbruggen: "Re: GD::Graph::Pie display values"
- Previous message: Bill McCormick: "GD::Graph::Pie display values"
- Next in thread: Ted Zlatanov: "Re: Can AppConfig do this?"
- Reply: Ted Zlatanov: "Re: Can AppConfig do this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|