Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Forcing a returned array (wantarray?)

by esskar (Deacon)
on Feb 21, 2005 at 01:05 UTC ( [id://432925]=note: print w/replies, xml ) Need Help??


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
sub foo { return wantarray ? @_ : "@_"; } my @bar = foo(1, 2, 3); # @bar = (1, 2, 3); my $bar = foo(1, 2, 3); # $bar = "1 2 3"
but
my @tmp = $this->{'ApacheRequest'}->param( "checkbox_field");
should do what you want

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://432925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-03-29 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found