From owner-freebsd-questions Sun Aug 31 04:53:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA02343 for questions-outgoing; Sun, 31 Aug 1997 04:53:07 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA02304 for ; Sun, 31 Aug 1997 04:52:40 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id MAA01152; Sun, 31 Aug 1997 12:39:43 +0100 (BST) Message-Id: <199708311139.MAA01152@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Charles Mott cc: questions@FreeBSD.ORG Subject: Re: ppp and internal modem In-reply-to: Your message of "Fri, 29 Aug 1997 22:18:36 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 31 Aug 1997 12:39:43 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [.....] > I was just doing some scripting in awk, and the array indices > seemed to start with 1 and not 0, and this language was invented by the > same person who started C. > Hmmm, from the awk man page: ARGV Array of command line arguments. The array is indexed from 0 to ARGC - 1. Dynamically changing the contents of ARGV can control the files used for data. [.....] array x which is indexed by the string "A\034B\034C". All arrays in AWK are associative, i.e. indexed by string val- ues. I can't claim to know much (practically) about arrays in awk - when you get to that level, a C program is really in order ;-) But from the docs, it seems that arrays are sparce and can effectively begin with anything. -- Brian , Don't _EVER_ lose your sense of humour....