CGI::T..._Field(3pm)
π CGI::T..._Field(3pm) π
ok so welcome bestie π«Ά you just opened CGI::T..._Field(3pm), from the User Contributed Perl Documentation collection, and honestly? she's a little icon. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
CGI::Test::Form::Widget::Input::Text_Field β it's a text field π that's literally the whole vibe.
π SYNOPSIS π
no thoughts, just code. copy it exactly, bestie:
# Inherits from CGI::Test::Form::Widget::Input
# $form is a CGI::Test::Form
my $desc = $form->input_by_name("description");
$desc->replace("small and beautiful");
see how $desc just... ate? yeah. that's the energy. π₯
πΈ DESCRIPTION πΈ
okay so picture this: this class models a single-line text field β like, the little box where users can type text. one line. that's her. she's not a textarea, she's not doing the most, she's just a cute little input and she's thriving. β¨
π INTERFACE π
the interface is exactly the same as the one described in CGI::Test::Form::Widget::Input, no cap, but she comes with these extra attributes on top. she's giving main character energy π
:
"max_length"β the maximum allowed text length within the field. if it's not defined, that means the length is not limited β she can hold whatever, she's boundless, she's free π¦. if it is defined, respect the limit bestie, periodt."size"β the size of the displayed text field, measured in characters. but lowkey important: the text held within the field can be much larger than that. the display is just the display, the content is the content, iykyk. π
π AUTHORS π
giving credit where credit is due, always:
- the original author is Raphael Manfredi β¨
- Steven Hilton was long time maintainer of this module π«Ά
- current maintainer is Alexander Tokarev
<tokarev@cpan.org>β email her if you need her π
π SEE ALSO π
CGI::Test::Form::Widget::Input(3)β go read the parent, she's iconic too π
aaaand that's the whole page bestie, you understood it perfectly, I'm so proud of you π₯Ήπ this was CGI::T..._Field(3pm), User Contributed Perl Documentation, running under perl v5.34.0 and dated 2022-06-10. go forth and type in your little text fields, you absolute legend ππ
π¦ where this page comes from
- debian bookworm: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- debian trixie: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu noble: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu resolute: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu stonking: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms