Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Confused Contexts and wantarray

by redlemon (Hermit)
on Jan 19, 2005 at 00:58 UTC ( #423234=note: print w/ replies, xml ) Need Help??


in reply to Re: Confused Contexts and wantarray
in thread Confused Contexts and wantarray

how is this scary?

@{...} puts flab() in array context so it returns the array @r.

scalar(...) then evaluates that array in scalar context, returning its size.

I don't see anything magical in there. (apart from me probably mixing array and lists again)


Comment on Re^2: Confused Contexts and wantarray
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-09-22 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls