Kleindenst, Fred wrote:
Hello all,

I'm trying to pass a list via the param method.  I don't see this
discussed in the docs, and it seems via some brief experiments that I
need to pass a reference to an array.  Am I missing something?

Yes, that should work. You'd do it like this:

  $self->param( a_list => [EMAIL PROTECTED] );

Then you'd access it like this:

  my $list_ref = $self->param('list');
  print $list_ref->[0];

If you want, you can convert it back to an array by dereferencing it:

  my @list = @{ $list_ref };

Make sure to test that $list_ref really _is_ a reference to an array though.

Hope that helps,

Rhesa

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to