|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: List context or not?by yakko (Friar) |
| on Mar 13, 2001 at 00:06 UTC ( #63934=note: print w/ replies, xml ) | Need Help?? |
|
Since foo() returns a list, why not assign it to a list: To get the number of keys returned by foo(), it'd be: (Update: the "wantarray" answers are probably better, I'm a young grasshopper learning, blah blah blah. :o) --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||