Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 having an uproarious good time at the Monastery: (5)
As of 2024-04-25 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found