NAME SHARYANTO::String::Util - String utilities VERSION version 0.20 FUNCTIONS trim_blank_lines($str) => STR Trim blank lines at the beginning and the end. Won't trim blank lines in the middle. Blank lines include lines with only whitespaces in them. ellipsis($str[, $maxlen, $ellipsis]) => STR Return $str unmodified if $str's length is less than $maxlen (default 80). Otherwise cut $str to ($maxlen - length($ellipsis)) and append $ellipsis (default '...') at the end. indent($indent, $str) => STR Indent every line in $str with $indent. Example: indent(' ', "one\ntwo\nthree") # " one\n two\n three" SEE ALSO SHARYANTO::Utils AUTHOR Steven Haryanto COPYRIGHT AND LICENSE This software is copyright (c) 2012 by Steven Haryanto. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.