On 21 Jun 2001 14:39:47 -0400, Chas Owens wrote: > How about > > use constant MAXSTRLENGTH => 4096; > > substr($string, MAXSTRLENGTH - 1, -1) = '' unless(length($strlen) < > MAXSTRLENGTH); > <snip /> Oops, let me ammend that to use constant MAXSTRLENGTH => 4096; substr($str, MAXSTRLENGTH - 1) unless (length($str) < MAXSTRLENGTH); Sleep dep sucks. -- Today is Boomtime, the 26th day of Confusion in the YOLD 3167 Umlaut Zebra über alles!
- Re: Limiting String Length Jeff 'japhy' Pinyan
- Re: Limiting String Length Chas Owens
- Re: Limiting String Length Chas Owens
- Re: Limiting String Length Paul
- Re: Limiting String Length Jeff 'japhy' Pinyan
- Re: Limiting String Length Jos I. Boumans
- Re: Limiting String Length Michael Fowler
- Re: Limiting String Length M. Buchanan