Bill McCabe wrote:
>
> Hi All
>
> I'm converting a mod_perl module-based site to HTML::Mason and have a
> question about passing arguments to a component.
>
> my $penuser = $r->connection->user;
> my $authzrc = $m->comp( 'authzREPSYS', data_aref=>\@data_refs,
> hconnref=>\%hconn, penuser=>$penuser );
>
this works for me, later you declare data:
>
> <%args>
> $data_aref
> $hconnref
> $penuser
> </%args>
And remember to use it as refs:
% foreach (@$data_aref) {
<% $_ > <br>
% }
Maybe you'r error is there, make sure you check perldoc perlref
--
- frankie -