HTML::S...:Select(3)
β¨ HTML::SuperForm::Field::Select β¨
okay bestie, so this is a page from the HTML::SuperForm docs, and today we're talking about HTML::SuperForm::Field::Select β aka the Select field that HTML::SuperForm uses π
ngl it's a short one but it's giving exactly what it needs to give. let's get into it π«Ά
πΈ NAME πΈ
HTML::SuperForm::Field::Select β the Select field used by HTML::SuperForm. iconic behaviour, no notes. π
π¦ SYNOPSIS π¦
okay so here's the whole vibe. you make a new select, you give it a name, you give it some values, you map those values to labels, and if you want the multiple-select situation you say multiple => 1. then you just print it and it does its thing β¨
my $select = HTML::SuperForm::Field::Select->new( name => 'my_select',
values => [ 1, 2, 3, 4 ],
labels => { 1 => 'One',
2 => 'Two',
3 => 'Three',
4 => 'Four' },
multiple => 1);
print $select;
like look at that. values is an arrayref, labels is a hashref, multiple is just a little 1. so clean, so demure. π
π SEE ALSO π
HTML::SuperForm::Fieldβ the parent energy, go read it, iykyk π§
π AUTHOR π
John Allwine <jallwine86@yahoo.com> β thank you for your service, king π«‘π
and that's the whole page bestie!! mwah π
this little gem is from perl v5.42.0, dated 2025-07-25 β go forth and build your selects, you absolute main character πβ
π¦ where this page comes from
- fedora 43: perl-HTML-SuperForm 1.09-45.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms