Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How do I pass a sequence of variable names to a subroutine one at a time?

by le (Friar)
on Oct 06, 2000 at 01:24 UTC ( [id://35485]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://35485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2025-01-13 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (29 votes). Check out past polls.