Skip to content

Commit

Permalink
Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory G Watson authored and Cory G Watson committed Oct 6, 2011
1 parent 1d4d572 commit a79cbda
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions README.mkdn
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# NAME

IO::Storm - Perl support for Twitter's Storm

# VERSION

version 0.01

# SYNOPSIS

package SplitSentenceBolt;
use Moose;

extends 'Storm::BasicBolt';

sub process {
my ($self, $tuple) = @_;

my @words = split(' ', $tuple->values->[0]);
foreach my $word (@words) {

$self->emit([ $word ]);
}
}

SplitSentenceBolt->new->run;

# DESCRIPTION

IO::Storm allows you to leverage Storm's multilang support to write Bolts
(and someday, more!) in Perl.

# AUTHOR

Cory G Watson <gphat@cpan.org>

# COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Infinity Interacive, Inc.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
2 changes: 1 addition & 1 deletion lib/IO/Storm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use JSON::XS qw(decode_json encode_json);
use Log::Log4perl;
use Storm::Tuple;

# ABSTRACT : Perl support for Twitter's Storm
# ABSTRACT: Perl support for Twitter's Storm

my $logger = Log::Log4perl->get_logger('storm');

Expand Down

0 comments on commit a79cbda

Please sign in to comment.