HTML::S...:Select(3)

πŸ“¦
version 1.09 Β· 2 versions
, in fedora 43

✨ 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