[LA.pm] how do I trim a $var down

David Heayn david at cloudgraphics.com
Fri Jun 24 22:55:15 PDT 2005


At 10:43 PM -0700 6/24/05, Mike Dillon wrote:
>
>
>You only should do it if the string is actually longer than 100:
>
>     substr($content, 101) = "" if length $content > 100;
>
>-md

Thanks Mike.

David Heayn * http://www.cloudgraphics.com * 213/925.3283


More information about the Losangeles-pm mailing list