in reply to List context or not?
Since foo() returns a list, why not assign it to a list:
To get the number of keys returned by foo(), it'd be:my @bar=foo(); print "@bar\n";
(Update: the "wantarray" answers are probably better, I'm a young grasshopper learning, blah blah blah. :o)my $baz=scalar(@bar);
--
Me spell chucker work grate. Need grandma chicken.
In Section
Seekers of Perl Wisdom