Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Foreach in a 2D array

by hmerrill (Friar)
on Oct 28, 2004 at 12:31 UTC ( [id://403367]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my %dataoptions = (
          "Gender", ["Male", "Female"]
       );
    
  2. or download this
       my %dataoptions = (
          "Gender" => ["Male", "Female"]
       );
    
  3. or download this
       ["Male", "Female"]
    
  4. or download this
       foreach $option ($dataoptions{$columns[$i]})
    
  5. or download this
       for ($i = 0; $i < @columns; $i++)
       {
    ...
             print '<input type="radio" name="'.$columns[$i].'" value="'.$
    +option.'"> '.$option.' ';
          }
       }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://403367]
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-03-29 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found