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.
UTF-8
This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.
To install Log::Parallel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Parallel
CPAN shell
perl -MCPAN -e shell install Log::Parallel
For more information on module installation, please visit the detailed CPAN module installation guide.