in reply to How do I pass a sequence of variable names to a subroutine one at a time?
If I get your question right, you overwrite the @cand_info
array each time you call the sub.
Try this in your for loop:
Try this in your for loop:
for each of your variables.push @cand_info, &get_cand_info( $var );
In Section
Seekers of Perl Wisdom