Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 77233
Status: resolved
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: MAUKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 1.353
  • 1.354
Fixed in: (no value)



Subject: POD failure in $_[OBJECT] documentation
The POD for $_[OBJECT] in POE::Session says: You may also use method inheritance. Here we invoke $self->a_method(@_). Since Perl's C<<->>> operator unshifts $self onto the beginning of @_, we must first shift a copy off to maintain POE's parameter offsets: The problem here is C<<->>>, which is equivalent to C<E<lt>->E<gt>E<gt> (that is, it renders as "<-">> instead of "->"). Solution: Use C<< -> >> (with spaces!) or C<-E<gt>> instead.
Applied, thanks! commit 032420f716604cac2914d692e3c5d3c8a7dbeefa Author: Rocco Caputo <rcaputo@cpan.org> Date: Tue Dec 18 01:34:44 2012 -0500 [rt.cpan.org 77233] Apply Lukas Mai's suggested POD fix. diff --git a/lib/POE/Session.pm b/lib/POE/Session.pm index 3f02673..b8ed6f5 100644 --- a/lib/POE/Session.pm +++ b/lib/POE/Session.pm @@ -913,7 +913,7 @@ methods in the same object. C<$_[OBJECT]> helps this happen. } You may also use method inheritance. Here we invoke -$self->a_method(@_). Since Perl's C<<->>> operator unshifts $self +$self->a_method(@_). Since Perl's C<< -> >> operator unshifts $self onto the beginning of @_, we must first shift a copy off to maintain POE's parameter offsets: