Net::IPMessenger::MessageCommand - message command definition and accessor class
use Net::IPMessenger::MessageCommand; my $command = Net::IPMessenger::MessageCommand->new('SENDMSG')->set_secret;
This defines IP Messenger command and option flags. This also gives you accessors of those option flags.
Option flag accessors are provided via AUTOLOAD method. you can use get_*, set_* to access those option flags.
my $messagecommand = Net::IPMessenger::MessageCommand->new($command);
Creates object and stores command. If command looks like number, just stores it. Otherwise, tries to convert it by using %COMMAND.
my $mode = $messagecommand->mode;
Returns command mode part.
my $modename = $messagecommand->modename;
Returns command modename.
my $command = $messagecommand->get_command;
Just returns stored command value.
To install Net::IPMessenger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::IPMessenger
CPAN shell
perl -MCPAN -e shell install Net::IPMessenger
For more information on module installation, please visit the detailed CPAN module installation guide.