Net::Bot::IRC::NumericCodes - A module for abstracting IRC numeric codes.
Version 0.04
use Net::Bot::IRC::NumericCodes; my $nc = IRC::NumericCodes->new(); # Lookup the numeric based on the code string. if ($code == $nc->str2num("RPL_WELCOME")) { # Do something. } # Look up the code string based on the numeric code. if ($strcode eq $nc->num2str(001)) { # Do some other stuff. }
For a full list of codes please read http://tools.ietf.org/html/rfc2812.
Caudill, Mark, mailto:mcaudillATcpan.org
Please report any bugs or feature requests to the maintainer.
You can find documentation for this module with the perldoc command.
perldoc Net::Bot::IRC::NumericCodes
You can find the current sources for this at git://github.com/flakblas/Net-Bot-IRC-NumericCodes.git.
Copyright 2010 Caudill, Mark.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install NumericCodes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NumericCodes
CPAN shell
perl -MCPAN -e shell install NumericCodes
For more information on module installation, please visit the detailed CPAN module installation guide.