Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 ( #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? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2022-12-05 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?