Re: Wrapping a method of an instance

[email protected] (Tomas Doran)
Newsgroups perl.moose
Message-ID <[email protected]>
> 
> Is it possible to add a modifier like that?


Yes, but you probably don't want to.

It's almost certainly better to apply a request role. Have a look at the changes I did to C::P::UploadProgress:

http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=14346
http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=14347

to work due to exactly the same issue.

Cheers
t0m
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.