On Tue, Dec 1, 2009 at 9:35 AM, MK <halfcountp...@intergate.com> wrote:
> BenRifkah Bergsten-Buret <mail.spammag...@gmail.com> wrote:
> > I don't know if it's documented but I'm able to get access to the cgi
> > parameters within the autohandler by doing this:
> >
> > my %args = @_;
>
>
> Thanks for that! No, I did not find any reference to it in the docs -- it
> is as if it had not occurred to anyone to supply an arg to the autohandler,
> which seems obvious to me! (otherwise it is just a static wrapper).
>
>
I don't know why I didn't try it before, but I just tried accessing %ARGS
from an autohandler and it worked fine.
Try the following simple autohandler and if it doesn't work post any errors
you get:
<%init>
$m->call_next();
</%init>
ARGS in autohandler: <% Dumper(\%ARGS) %>
--
Ben
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users