Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by guzz1 (Novice)
on Oct 06, 2000 at 00:34 UTC ( #35471=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $c1 = $query->param( 'c1' );
    @cand_info = &get_cand_info( $c1 );
    ...
     
            return @cand_info;
    }
    
  2. or download this
    for ($gi = 1; $gi <= $tno; $gi++ ) {
             $tnum = "c".$gi;
             $tnum2 = $query->param( '$tnum' );
             @cand_info = &get_cand_info( $tnum2 );
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2023-03-24 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?