* Josh Goldberg <[EMAIL PROTECTED]> [2002-11-20 19:20]: > map{$i++<$lim?push @n,$_:$i!=$lim?{push @n,'etc.' and goto FOO}:''}@names;
Sigh. map in void context and goto where a for would have done. And it doesn't even conform to the specs, you were asked to provide a string with less than 90 characters that should end with "etc" if there are more items than displayed. As far as I can tell, all you're doing is @n = @names[0..$lim-1]; push @n, "etc" if @names > $lim; -- Regards, Aristotle