[Gllug] re: OSS CMSs
David Damerell
damerell at chiark.greenend.org.uk
Fri Apr 29 15:42:36 UTC 2005
On Friday, 29 Apr 2005, Rev Simon Rumble wrote:
>like linenoise. This isn't helped by the documentation often using the
>most obscure constructions.
>A good example is push: http://www.perlfunc.org/function.php?name=push
>The example given:
> for $value (LIST) {
> $ARRAY[++$#ARRAY] = $value;
> }
>When I, and surely anyone sane, would write this:
> foreach $value (LIST) {
> push(@ARRAY, $value)
> }
>Or maybe I'm missing something?
Well, the intention is to demonstrate the effect of push, which can
hardly be done in terms of push.
That said, some constructions involving $# are useful, but utterly
perverse to anyone who doesn't make regular use of them.
--
David Damerell <damerell at chiark.greenend.org.uk> flcl?
Today is Aponoia, May.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list