* Dave Arnold <[EMAIL PROTECTED]> [2002-11-21 02:45]:
> $str = join ', ', @names;
> if ( length($str) > 90 )
> {
>   substr($str,rindex($str,",",90)) = ", etc.";
> }

Nice, and so obvious too - in retrospect, of course.

The only thing I don't like about it is it still joins
everything, even if it only needs 3 out of 10,000 elements.

-- 
Regards,
Aristotle

Reply via email to