Smolder::Util
Collection of various useful routines for Smolder
Given a ratio, will return an RRGGBB color suitable for a web page as a visual indicator of a test's success. Green == 100%, Red == 0%.
Given a number of seconds, format it as string of the format HH:MM:SS or MM:SS or SS.
HH:MM:SS
MM:SS
SS
Smolder::Util::format_time(1000); # prints 16:40 Smolder::Util::format_time(35); # prints 35 Smolder::Util::format_time(100); # prints 1:40
This method will return the base url for the installed version of Smolder.
To install Smolder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Smolder
CPAN shell
perl -MCPAN -e shell install Smolder
For more information on module installation, please visit the detailed CPAN module installation guide.