Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser set_message); use CGI qw(-oldstyle_urls :standard); print header(); my @acc = qw(12345 67895 123445 112288 3736666 445899); my $c=0; my $dmenu="<select name=dropdown>". foreach my $accs(@acc) { $c++; "<OPTION value=$c>$accs</OPTION>". } "</select>"; print $dmenu;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dynamic menu options
by Your Mother (Archbishop) on Jul 28, 2010 at 19:06 UTC | |
by Anonymous Monk on Jul 29, 2010 at 03:09 UTC | |
by Your Mother (Archbishop) on Jul 29, 2010 at 03:30 UTC | |
|
Re: Dynamic menu options
by kennethk (Abbot) on Jul 28, 2010 at 17:51 UTC | |
by Anonymous Monk on Jul 28, 2010 at 18:11 UTC | |
by kennethk (Abbot) on Jul 28, 2010 at 18:46 UTC |