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)
In reply to Re^2: Confused Contexts and wantarray
by redlemon
in thread Confused Contexts and wantarray
by Dr. Mu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |