Convos::Core::Util - Utility functions for Convos
"import" can export any of the "FUNCTIONS".
$id = as_id @str;
This method will convert the input to a string which can be used as id attribute in your HTML doc.
It will convert non-word characters to ":hex" and join @str with ":00".
@str
$str = format_time $timestamp, $format;
@str = id_as $id;
Reverse of "as_id".
$c->logf($level => $format, @args); $c->logf(debug => 'yay %s', \%data);
Used to log more complex datastructures and to prevent logging undef.
undef
$str = pretty_server_name($server);
Removes "ssl\.", "irc.", "chat." from the beginning and ".com", ".org", ... from the end. Converts all non word and "_" to "-". Also removes the port.
Also has special handling for $servers matching...
$server | $str -------------|------- irc.perl.org | magnet efnet | efnet
Jan Henning Thorsen - jhthorsen@cpan.org
jhthorsen@cpan.org
To install Convos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convos
CPAN shell
perl -MCPAN -e shell install Convos
For more information on module installation, please visit the detailed CPAN module installation guide.