Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w # # use strict; open(FILE,"</etc/config") || die "Could not open /etc/config:$!\n"; while(<FILE>) { if (/^param/i){ ..... } elsif (..... } elsif (....... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing config file
by maverick (Curate) on Aug 19, 2001 at 23:58 UTC | |
by Anonymous Monk on Aug 19, 2001 at 23:59 UTC | |
by Rudif (Hermit) on Aug 20, 2001 at 00:09 UTC | |
by maverick (Curate) on Aug 20, 2001 at 00:17 UTC | |
|
Re: parsing config file
by footpad (Abbot) on Aug 20, 2001 at 01:00 UTC | |
by Anonymous Monk on Aug 20, 2001 at 01:38 UTC | |
by maverick (Curate) on Aug 20, 2001 at 01:58 UTC |