Help for this page

Select Code to Download


  1. or download this
    my $hostname_ref = $dbh->selectcol_arrayref("SELECT hostname FROM perm
    +_inventory ORDER BY hostname");
    
  2. or download this
    use CGI;
    
    ...
    
    print $cgi->popup_menu(-name=>'my_popup',-values=>$array_ref);
    
  3. or download this
    <select name="my_popup" >
    <option value="eenie">eenie</option>
    ...
    <option value="miney">miney</option>
    <option value="mo">mo</option>
    </select>
    
  4. or download this
    #!/usr/bin/perl -w 
    use strict;
    ...
    print $cgi->dropdown_menu(-name=>'myselect',
                              -values=>$array_ref);
    
  5. or download this
    <select name="my_popup" >
    <option value="ARRAY(0x928fb1c)">ARRAY(0x928fb1c)</option>
    ...
    <option value="ARRAY(0x928fc84)">ARRAY(0x928fc84)</option>
         -- stuff deleted -- 
    </select>
    
  6. or download this
      :
    use Data::Dumper
      : rest of our code
    print Dumper($array_ref);
    
  7. or download this
    $VAR1 = [
              [
    ...
                'Bennett'
              ],
     --- etc ---
    
  8. or download this
     
    | stuff left out...
    | handwaving...
    print $cgi->popup_menu(-name=>'my_popup',-values=>[ map { $_ -> [0] } 
    +@$array_ref ]);
    | 
    |