From DHarper@UH.EDU Mon Aug 26 15:17:38 1991
Received: by Menudo.UH.EDU id AA19921
  (5.65c+/IDA-1.4.4 for don@homer.phys.uh.edu); Mon, 26 Aug 1991 15:17:13 -0500
Received: from Post-Office.UH.EDU by Menudo.UH.EDU with SMTP id AA26563
  (5.65a+/IDA-1.4.2 for acsiv); Wed, 24 Apr 91 21:11:16 -0500
Received: from rand.org by Post-Office.UH.EDU with PMDF#10188; Wed, 24 Apr 1991
 21:10 CDT
Received: from mycroft.rand.org by rand.org; Wed, 24 Apr 91 19:04:17 -0700
Received: from localhost by mycroft.rand.org; Wed, 24 Apr 91 19:04:11 PDT
Date: Wed, 24 Apr 91 19:04:08 PDT
From: Jim Gillogly <jim@rand.org>
Subject: Re: Tech...
In-Reply-To: Your message of Wed, 24 Apr 91 20:52:14 -0500.
 <9104250152.AA25197@Menudo.UH.EDU>
Sender: DHarper@UH.EDU
To: "Duck aka D. Harper" <DHarper@uh.edu>
Cc: jim%mycroft@rand.org
Reply-To: jim@rand.org
Message-Id: <9104250204.AA03341@mycroft.rand.org>
Status: OR

You're usin' the wrong language, boyo!  Here it is in Perl:

	open(nat, "nat")   || die("I need the nation: \"nat >! nat\".\n");
	while (<nat>)   # Get tech level
	{       $tech    = $1 if (/Technology\.+ +(\S+) /);
	}
	close(nat);
	printf "Technology is at %.2f.\n", $tech;

What could be tidier?

	Jim

P.S.  Your "accountant" program works like a charm.  However, either the
food growth thing is misleading, or I don't understand how to get all the
good out of my agribiz and/or bridges.  My problem is that although it
claims it will grow 2000 or so food, only (999 - food_in_sector) gets
produced because of the limits.  I've tried delivering some out and
distributing the rest, or delivering it all out, or this and that... but
no luck -- maxes out at 999.  So either (a) you should have a limit of
999 of anything (overriding the bogosities of "prod"), or (b) better yet,
tell me how I can actually *get* the stuff

	Jim again


