Skip Menu |

This queue is for tickets about the MooseX-POE CPAN distribution.

Report information
The Basics
Id: 31432
Status: resolved
Worked: 5 min
Priority: 0/
Queue: MooseX-POE

People
Owner: cpan [...] prather.org
Requestors: cja987 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



Subject: syntax errors in SYNOPSIS example
The sample code doesn't actually work, since it doesn't properly case POE, and omits a semicolon at the end of the last event definition. Here's a patch that fixes both, and I also took the liberty of making the example actually print something. --- lib/MooseX/POE.pm.orig 2007-12-12 13:47:18.000000000 -0800 +++ lib/MooseX/POE.pm 2007-12-12 13:48:36.000000000 -0800 @@ -85,7 +85,7 @@ =head1 SYNOPSIS package Counter; - use MooseX::Poe; + use MooseX::POE; has name => ( isa => 'Str', @@ -107,11 +107,12 @@ event increment => sub { my ($self) = @_; + print "Count is now " . $self->count . "\n"; $self->count( $self->count + 1 ); $self->yield('increment') unless $self->count > 3; - } + }; - no MooseX::Poe; + no MooseX::POE; Counter->new(); POE::Kernel->run();
I fixed this in SVN HEAD and properly cited you in the Changelog :) It'll get released in the next version (whenever that is). -Chris