Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found