Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 taking refuge in the Monastery: (2)
As of 2024-06-25 06:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.