Sujet : Re: AWK language trivia
De : porkchop (at) *nospam* invalid.foo (Mike Sanders)
Groupes : comp.lang.awkDate : 21. Aug 2024, 06:32:49
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va3u61$3ohv3$1@dont-email.me>
References : 1 2 3
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (NetBSD/9.3 (amd64))
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...
-- :wqMike Sanders