Util::Medley::String - utility methods for working with strings
version 0.024
...
Converts a string to camelcase.
$camelCase = $util->camelize($str); $camelCase = $util->camelize(str => $str);
The string you wish to camelize.
Checks whether a string is strictly whitespace or empty.
$bool = $util->isBlank($str); $bool = $util->isBlank(str => $str);
The string to check.
Just a pass-through to String::Util::Numeric::isint.
$bool = $util->isInt($str); $bool = $util->isInt(str => $str);
The string you wish to check for an integer.
Just a pass-through to String::Util::lTrim.
$lTrimmed = $util->lTrim($str); $lTrimmed = $util->lTrim(str => $str);
The string to lTrim.
Converts a string to Pascal case.
$pascalCase = $util->pascalize($str); $pascalCase = $util->pascalize(str => $str);
Just a pass-through to String::Util::rTrim.
$rTrimmed = $util->rTrim($str); $rTrimmed = $util->rTrim(str => $str);
The string to rTrim.
Converts a string to snake case.
$snakeCase = $util->snakeize($str); $snakeCase = $util->snakeize(str => $str);
The string to snakeize.
Converts a string to title case.
$titleCase = $util->titleize($str); $titleCase = $util->titleize(str => $str);
The string to titleize.
Just a pass-through to String::Util::trim.
$trimmed = $util->trim($str); $trimmed = $util->trim(str => $str);
The string to trim.
Convert scalar to a string if its value is undef. The string arg is optional and defaults to ''.
$str = $util->undefToString($str); $str = $util->undefToString(str => $str);
The string to check for undef.
The string to replace undef with.
To install Util::Medley, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Util::Medley
CPAN shell
perl -MCPAN -e shell install Util::Medley
For more information on module installation, please visit the detailed CPAN module installation guide.