Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Eager Newsgroups: comp.os.linux.misc,alt.folklore.computers Subject: Re: The joy of FORTRAN Date: 27 Sep 2024 14:13:56 GMT Lines: 35 Message-ID: References: <5mqdnZuGq4lgwm_7nZ2dnZfqnPSdnZ2d@earthlink.com> <36KdnVlGJu9VLW77nZ2dnZfqn_qdnZ2d@earthlink.com> <20240927113205.b0ccfb4910eb89f27f138cbb@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net VitLYsM4mD7vY0wN6H59ug0j1vcgWitR6y5L6gHNmvIhLiHgCH Cancel-Lock: sha1:SV0DkYG0Ea20NAaJRtiLTS2u6oE= sha256:8XA+kpKoyk4NqHWDhyguXIif6qXHLo/1IUDP3rRY3sU= User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) Xref: csiph.com comp.os.linux.misc:58541 alt.folklore.computers:227082 On Fri, 27 Sep 2024 11:32:05 +0100, Kerr-Mudd, John wrote: > On Thu, 26 Sep 2024 20:51:25 -0000 (UTC) Lawrence D'Oliveiro > wrote: > >> On Thu, 26 Sep 2024 16:18:01 GMT, Charlie Gibbs wrote: >> >> > One of the favourite functions in my library pulls the next token >> > from a delimited string, but as opposed to strtok() it does it >> > non-destructively and can handle empty strings. >> >> Use a high-level language which has all this and more: >> >> for item in "the,quick,brown,fox".split(",") : >> print(item) >> #end for >> >> Output: >> >> the quick brown fox >> >> In Python, strings are objects, and that applies to string expressions >> (including string literals) as well. > > You need Rexx Hear, hear. Still use it. -- Using UNIX since v6 (1975)... Use the BIG mirror service in the UK: http://www.mirrorservice.org