Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Forcing a returned array (wantarray?)

by esskar (Deacon)
on Feb 21, 2005 at 01:05 UTC ( #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? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-03-28 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (69 votes). Check out past polls.

    Notices?