Deutsch English Français Italiano |
<va3u61$3ohv3$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: porkchop@invalid.foo (Mike Sanders) Newsgroups: comp.lang.awk Subject: Re: AWK language trivia Date: Wed, 21 Aug 2024 05:32:49 -0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Sender: Mike Sanders <busybox@sdf.org> Message-ID: <va3u61$3ohv3$1@dont-email.me> References: <v9qbgh$1u7qe$1@dont-email.me> <va3k5u$3n2um$1@dont-email.me> <va3m12$10662$1@news.xmission.com> Injection-Date: Wed, 21 Aug 2024 07:32:49 +0200 (CEST) Injection-Info: dont-email.me; posting-host="c07617ccf20e561b171d3b81aed9e688"; logging-data="3950563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19It02Wp9WrpBvoBvOyYHcw" User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (NetBSD/9.3 (amd64)) Cancel-Lock: sha1:CXC2wbfHfS0BpzTaQ8orMqZYBQ0= Bytes: 1700 Kenny McCormack <gazelle@shell.xmission.com> wrote: > In article <va3k5u$3n2um$1@dont-email.me>, > Mike Sanders <porkchop@invalid.foo> wrote: >>just in case... >> >>not sure its wise to use 'm += var' with digits: >> >>m += string # valid >>m += "7" # may be invalid if its a digit (even if quoted) > > In AWK, these are very different things. > > += is always arithmetic; it is not string concatenation at all. Ahh... Many thanks as always Kenny. When our brains are uploaded to the great cyborg in the sky in the future, I'll be looking for a copy of your awk knowledge. See elsewhere in this group a soon to be posted question titled: '{} Questions' Wondering if what I'm thinking is good/bad logic... -- :wq Mike Sanders