Padre::Swarm::Message - A Swarm message base
my ($channel,$entity,$message) = $some_transport->receive_from( $some_channel ); print $message->title , ' - ' , $message->type; if ( $message->type eq 'interesting' ) { # process } my $message = Padre::Swarm::Message->new( title => 'Patch ./Changes', type => 'svn:notify', from => 'svn-jabber@example.com', to => 'me@here.com', body => $data , );
At transport layer, a Swarm message has the attributes to, from, title, body and type.
title must be a string to and from must be L<Padre::Swarm::Identity> instances. type is always a string and may be used to subclass by registration subclasses must not mutate title,type,from,to body considered scalar bytes and entirely the problem of the 'type' implementor
To install Padre::Plugin::Swarm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre::Plugin::Swarm
CPAN shell
perl -MCPAN -e shell install Padre::Plugin::Swarm
For more information on module installation, please visit the detailed CPAN module installation guide.