in reply to Forcing a returned array (wantarray?)
the idea of wantarray is a little bit different.
e.g. a subroutine is using it to determ if the caller wants an array or a scalar
e.g. a subroutine is using it to determ if the caller wants an array or a scalar
butsub foo { return wantarray ? @_ : "@_"; } my @bar = foo(1, 2, 3); # @bar = (1, 2, 3); my $bar = foo(1, 2, 3); # $bar = "1 2 3"
should do what you wantmy @tmp = $this->{'ApacheRequest'}->param( "checkbox_field");
|
---|
In Section
Seekers of Perl Wisdom