Exports functions for performing various types of vaue comparisons.
String equality test. Returns 1 if both operands are the same in a string context, 0 if they are not.
<operand> <operand>
String ordinality test. Returns 1 if ``a`` sorts before ``b`` according to the collation rules of the locale in which the bot is running. Returns 0 otherwise.
<operand a> <operand b>
(lt "abc" "def")
String ordinality test. Returns 1 if ``a`` sorts after ``b`` according to the collation rules of the locale in which the bot is running. Returns 0 otherwise.
(gt "zyx" "abc")
String inequaity test. Returns 1 if both operands are different in a string context, 0 otherwise.
String comparison. Returns -1 if ``a`` collates before ``b``, 1 if ``b`` collates first, and 0 if they are equal. Collation uses the locale under which the bot is running.
Numeric equality test. Returns 1 if both operands the same numerically, 0 otherwise.
(== 1 1.0000000)
Numeric less-than test. Returns 1 if ``a`` is less than ``b``, 0 otherwise.
(< 1 2)
Numeric greater-than test. Returns 1 if ``a`` is greater than ``b``, 0 otherwise.
(> 50 10)
Numeric inequality test. Returns 1 if both operands are different numbers, 0 otherwise.
(!= 0.1 1.0)
To install App::RoboBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::RoboBot
CPAN shell
perl -MCPAN -e shell install App::RoboBot
For more information on module installation, please visit the detailed CPAN module installation guide.