Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
laziness, impatience, and hubris
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.