From: Jos Backus <jos@catnook.com>
To: zsh-users@sunsite.dk
Subject: Re: Python/zsh/perl [was: named directory expansion on strings]
Date: Sun, 14 Mar 2004 20:00:13 -0800 [thread overview]
Message-ID: <20040315040035.GB29760@lizzy.catnook.com> (raw)
In-Reply-To: <20040314215700.GA61154@quark.hightek.org>
On Sun, Mar 14, 2004 at 03:57:00PM -0600, Vincent Stemen wrote:
> As wonderful of a language as Perl is, that is the one limitation I
> have found that gives Z shell an advantage, even over Perl, in
> situations where that lower level control is needed. In Perl, it is
> far to much unnecessary overhead to split a string on every character,
> into a two dimensional array of strings, using the null delimiter, just
> gain access to a specific byte of the array. Then, if you modify the
> array, you must re-join the data back into a single string. All that,
> as opposed to just being able to say "$array[$i] = 'x'".
>
> This is about the only complaint I can think of I have ever really had
> with Perl.
lizzy:~% perl -le 'my $a = "abc"; substr($a, 1, 1) = "z"; print $a;'
azc
lizzy:~%
--
Jos Backus _/ _/_/_/ Sunnyvale, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'
next prev parent reply other threads:[~2004-03-15 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-13 3:29 named directory expansion on strings Thorsten Kampe
2004-03-13 6:41 ` Bart Schaefer
2004-03-13 17:48 ` Thorsten Kampe
2004-03-14 18:54 ` Bart Schaefer
2004-03-14 21:24 ` Thorsten Kampe
2004-03-14 21:57 ` Python/zsh/perl [was: named directory expansion on strings] Vincent Stemen
2004-03-15 4:00 ` Jos Backus [this message]
2004-03-15 7:04 ` [OT]Python/zsh/perl " Bob Schmertz
2004-03-15 23:37 ` [OT]Python/zsh/perl Vincent Stemen
2004-03-17 4:03 ` [OT]Python/zsh/perl [was: named directory expansion on strings] Eric Mangold
2004-03-14 22:19 ` named directory expansion on strings Thorsten Kampe
2004-03-14 23:19 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040315040035.GB29760@lizzy.catnook.com \
--to=jos@catnook.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).