> you couldn't do it with a grep call, because grep returns
> some subset of the original list. it doesn't make any
> modifications.
wrong. you could use grep, and it
is destructive to the
input list. something like this works:
my @n = grep s/$_/$count+=$_;$_=$count/e, <DATA>;
i know it doesn't make any sense to use grep here, but
it can be done.
cheers
s
nowcrash //////