Re: AWK language trivia

Liste des GroupesRevenir à cl awk 
Sujet : Re: AWK language trivia
De : porkchop (at) *nospam* invalid.foo (Mike Sanders)
Groupes : comp.lang.awk
Date : 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...

--
:wq
Mike Sanders


Date Sujet#  Auteur
17 Aug 24 * (Long post) Metaphone Algorithm In AWK17Mike Sanders
19 Aug 24 +* Re: (Long post) Metaphone Algorithm In AWK10Ben Bacarisse
19 Aug 24 i+- Re: (Long post) Metaphone Algorithm In AWK1Ben Bacarisse
19 Aug 24 i+* Re: (Long post) Metaphone Algorithm In AWK2Mike Sanders
19 Aug 24 ii`- Re: (Long post) Metaphone Algorithm In AWK1Mike Sanders
20 Aug 24 i`* Re: (Long post) Metaphone Algorithm In AWK6Mike Sanders
21 Aug 24 i `* Re: (Long post) Metaphone Algorithm In AWK5Ben Bacarisse
21 Aug 24 i  `* Re: (Long post) Metaphone Algorithm In AWK4Mike Sanders
21 Aug 24 i   +- Re: (Long post) Metaphone Algorithm In AWK1Mike Sanders
21 Aug 24 i   `* Re: (Long post) Metaphone Algorithm In AWK2Ben Bacarisse
21 Aug 24 i    `- Re: (Long post) Metaphone Algorithm In AWK1Mike Sanders
20 Aug 24 +- Re: (Long post) Metaphone Algorithm In AWK1Mike Sanders
21 Aug 24 +* Re: (Long post) Metaphone Algorithm In AWK3Mike Sanders
21 Aug 24 i`* AWK language trivia (Was: (Long post) Metaphone Algorithm In AWK)2Kenny McCormack
21 Aug 24 i `- Re: AWK language trivia1Mike Sanders
21 Aug 24 +- Re: (Long post) Metaphone Algorithm In AWK1Mike Sanders
23 Aug 24 `- Re: (Long post) Metaphone Algorithm In AWK1Mike Sanders

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal