[33065] in Perl-Users-Digest
Perl-Users Digest, Issue: 4341 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jan 2 14:09:18 2015
Date: Fri, 2 Jan 2015 11:09:02 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 2 Jan 2015 Volume: 11 Number: 4341
Today's topics:
Re: Script help <news@lawshouse.org>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 02 Jan 2015 17:36:55 +0000
From: Henry Law <news@lawshouse.org>
Subject: Re: Script help
Message-Id: <APadndVU-86lSjvJnZ2dnUVZ8vednZ2d@giganews.com>
On 30/12/14 03:49, aglait@gmail.com wrote:
> so need to check if param_one is in some_file.conf and if it is there
> test the value .. if it is not .. add to some_file.conf ... I think
> it should be easy ... right ??
1. It's not hard. Grab lines from the first file, use a hash to store
them, with "param_one" etc as keys. Then run through the second file in
like manner, doing stuff.
2. But is it necessary? You maintain param.txt rather than
some_file.conf, which is much the same task in terms of effort, with the
added disadvantage that you now have two places you can make changes.
And in fact, since lots of Unix utilities have a cascading set of
configuration files, there's even more room for confusion.
NB: Don't discuss point 2 any more here; it's way off topic.
--
Henry Law Manchester, England
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 4341
***************************************