Log::Parallel::Sql::Trim - chop extra long strings to byte limit
use Log::Parallel::Sql::Trim; $shorter = encode_and_trim($longer, $length_limit);
This chops a string to a length. It considers the length to be a byte limit, but it chops based on characters. It also encodes the string in
UTF-8. This is useful for storing strings in a database with a limited field length.
This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.