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