package HTML::Menu::Select; use 5.004; use strict; use Carp 'carp'; our $VERSION = '1.01'; require Exporter; our @ISA = qw( Exporter ); our @EXPORT_OK = qw( options menu popup_menu ); our %EXPORT_TAGS = ( all => \@EXPORT_OK ); our @KNOWN_KEYS = qw( name value values default defaults labels attributes size multiple override ); sub popup_menu { &menu }; sub menu { my %arg = (ref $_[0]) ? %{$_[0]} : @_; my $html = ''; $arg{name} = '' if not exists $arg{name}; $html = sprintf ' items. Traditionally, if you wanted to dynamically generate a list of options in a C This module allows you to quickly prototype a page, allowing the CGI to completely generate the HTML, while allowing you at a later stage to easily change how much HTML it generates. =head1 INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install Alternatively, to install with Module::Build, you can use the following commands: perl Build.PL ./Build ./Build test ./Build install =head1 METHODS =head2 menu() Use C to generate the entire HTML for a select menu. This allows you to have a very simple template tag, such as: C accepts the following parameters: =over =item name This is used in the C The labels will be run through escapeHTML, see L<"HTML escaping">. =item attributes This is a hash-ref of values to provide extra HTML attributes for the C