--- Vladi Belperchinov-Shabanski <[EMAIL PROTECTED]> wrote:
> On Wed, 20 Nov 2002 21:01:45 +0100 "A. Pagaltzis" <[EMAIL PROTECTED]> wrote:
>
> > * Jonathan E. Paton <[EMAIL PROTECTED]> [2002-11-20 20:51]:
> > > if (@array > $bound) {
> > > $array[$bound-1] = ", etc"; # Set element at boundary
> > > $#array = $bound-1; # Shorten array to boundary
> > > }
> > >
> > > print join ", ", @array;
> >
> > Again, that's the same as:
> >
> > join ', ', @array[0 .. $bound], @array > $bound ? 'etc' : ();
>
> both are wrong. how can you be sure the resulting string will be
> no more than 90 chars (X chars) in length?
>
> for example the first element in the array is 128K :)
We are now both aware that we were solving the wrong problem, I
point this out myself in one of my later posts. References:
http:[EMAIL PROTECTED]/msg02860.html
http:[EMAIL PROTECTED]/msg02862.html
Jonathan Paton
=====
s''! v+v+v+v+ J r e P h+h+h+h+ !s`\x21`~`g,s`^ . | ~.*``mg,$v=q.
P ! v-v-v-v- u l r e r h-h-h- !12.,@.=m`.`g;do{$.=$2.$1,$.=~s`h
E ! v+v+v+ s k e h+h+ !`2`x,$.=~s`v`31`,print$.[$v+=$.]
R ! v-v- t H a c h h- !}while/([hv])([+-])/g;print"\xA"
L ! A n o t !';$..=$1while/([^!]*)$/mg;eval$.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com