Skip Menu |

This queue is for tickets about the Catalyst-Manual CPAN distribution.

Report information
The Basics
Id: 23576
Status: resolved
Priority: 0/
Queue: Catalyst-Manual

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

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



Subject: WritingPlugins and Catalyst::Request
Hi there, In WritingPlugins (first code block in section EXAMPLE) it gives an example of inserting a 'uuid' accessor into the Catalyst::Request namespace. I found that jumping package scope into Catalyst:Request like that, using a block and the package keyword, confused the PAUSE indexer when I uploaded my plugin (it thought I wanted to do things in the Catalyst::Request namespace, and whinged about permissions). To hack around this, try instead: use Symbol; *{Symbol::qualify_to_ref('uuid', 'Catalyst::Request')} = Class::Accessor::make_accessor('Catalyst::Request', 'uuid'); Note that Symbol.pm is Perl core now, so it should work fine and insert the accessor just as in the POD's example, but without confusing PAUSE. HTH! Sorry for putting it in AnnoCPAN first. At the last YAPC someone mentioned that AnnoCPAN might be generating rt.cpan.org tickets automatically from postings, but I guess my brain merged fantasy and reality :) regards, oliver.