<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Thanks for the tip! But I need to know also the name of
the sub.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I read the source of this sub, but "reflect_actions"
uses the "_action_cache" property, which is defined at a MODIFY_CODE_ATTRIBUTES
in Catalyst::Base (and I think perl attributes knows nothing about sub names). I
also tryed to access the symbol table, with %{ *{"MyApp::"} }, but i got so
many coderefs that it seems impossible to know which ones are "real" actions and
which ones are exported things!</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Any other way I could try to find the sub
names?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Thanks, </FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Diego de Lima</FONT></DIV>
<DIV><FONT face=Arial></FONT><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>>Am 23.05.2005 um 15:26 schrieb Diego de
Lima:<BR>>><I> Is there a way which I can list all avaiable actions I can
forward, <BR></I>>><I> on a View or
Controller?<BR></I>>><I><BR></I>>><I> I don�t want to know _if_ I
can forward, I want to get an array <BR></I>>><EM> with all actions
I can forward to.<BR>></EM><BR><EM>></EM> use
Catalyst::Utils;<BR>> use
Data::Dumper;<BR>><BR>> warn Dumper
Catalyst::Utils::reflect_actions('MyApp::C::Foo');<BR>><BR>>--<BR>>sebastian<BR></DIV></FONT></BODY></HTML>