qbit::StringUtils - Functions to manipulate strings.
Arguments:
$str - string.
Return value: string with encoded HTML entities.
Return value: string with decoded HTML entities.
Return value: string with escaped URI entities.
$email - string, E-Mail.
Return value: boolean, TRUE if email is valid.
$url - string, URL;
%opts - additional arguments:
ascii - boolean, convert unicode chars to ascii;
www - boolean, save 'www.'.
Return value: string if domain valid, else nothing.
$data - scalar.
Return value: string, $data as JSON.
$data
$text - string, JSON.
Return value: scalar, perl structure from JSON.
$number - number;
%args - hash, additional arguments:
precision: number, needed precision, if missed then frac will return as is;
thousands_sep: string, thousands separator, default gets from locale;
decimal_point: string, decimal point, default gets from locale.
Return value: string, formatted number.
$string - string.
Convert $string to perl utf8 string if it is without utf8 flag;
Return value: string with utf8 flag.
To install qbit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm qbit
CPAN shell
perl -MCPAN -e shell install qbit
For more information on module installation, please visit the detailed CPAN module installation guide.