in reply to Config file parser
sub=salami mayo=yes tuna=fish topping=$sub mustard=no
In this example, $config{'topping'} is set to "salami", not "$sub". The only advice I have for the script is to move the chomp until after the "next"s as there is no need to chomp lines you are bypassing. Other than that, a very nice little script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Config file parser
by stephen (Priest) on Apr 17, 2000 at 04:40 UTC |