On Sun, Nov 29, 2009 at 10:40 PM, MK <halfcountp...@intergate.com> wrote:
>
> It appears the autohandler does not work this way, ie, does not process any
> arguments.
>
>
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 = @_;
> Not a big deal; it is almost as easy to just use a default component at the
> top in all the other files and pass the arg on:
>
> <& default.comp, foot=>$ARGS{foot} &>
>
> but I thought I'd check and see if there isn't something I'd missed here.
> Also, is there an easy way to pass the entirity of %ARGS on? Something
> like:
>
> <& comp, ARGS=>%ARGS &>
>
>
I usually do <& comp, %ARGS &> to pass on all of the arguments.
Note that %ARGS is evaluated in a list context so it acts as if you had
passed each key/value pair individually.
--
Ben
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users