in reply to Forcing a returned array (wantarray?)
wantarray is actually intended to be used in the called subroutine (param in this case) so it can tell whether you're calling it in scalar context or array context.my $ref = $this->{'ApacheRequest'}->param( "checkbox_field"); my @tmp = ref($ref)?@$ref:$ref;
|
|---|