http://qs1969.pair.com?node_id=35485


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:
push @cand_info, &get_cand_info( $var );
for each of your variables.
  • Comment on Re: How do I pass a sequence of variable names to a subroutine one at a time?
  • Download Code