in reply to Sub attributes

I can't point you to any documents or sample code right now but, in Cat at least, they are arbitrary strings which are parsed out. "Unrecognized" ones would only be fatal in this context if you intentionally made misparsing of them fatal. I have mixed feelings about them because it is just string wrangling here. They are very useful but seem clumsy (you can stack up a bunch of them for one controller sub) and I think it might be nice if the new Moose stuff would mutate them into some other syntax eventually.

Replies are listed 'Best First'.
Re^2: Sub attributes
by stvn (Monsignor) on Jun 09, 2009 at 21:14 UTC

    I think that MooseX::MethodAttributes might be what you are looking for. It is a nice meta-level API to sub attributes, and came out of the Catalyst Moosification I think.

    -stvn

      Thanks much. I only this weekend upgraded my main Cat stuff to 5.8 (on Moose). I was mildly amazed that nothing broke. I'm still a total Moose newbie but I really appreciate and admire the effort you and Dave and Sartak et al have put into it. I like seeing the frequent releases too.