Form::...isplay(3pm)
π Embperl::Form::Control::display β the vibe check
okay bestie, so this is a page from the User Contributed Perl Documentation set, and the module's full name is Embperl::Form::Control::display β it's the little control that's like "here's some text, look at it, don't touch it" inside an Embperl Form. A display-only queen. No editing, just serving looks. π
β¨ SYNOPSIS β¨
no cap, this is literally the whole shape of it:
{
type => 'display',
text => 'blabla',
hidden => 1,
name => 'foo',
split => 1
}
πΈ DESCRIPTION πΈ
So the tea is: you use this to create a display only control inside an Embperl Form. It shows stuff. That's the job. It's giving "read-only main character." π¦
And if you wanna know how to actually specify parameters properly, go check out Embperl::Form β that's where the rules live.
π PARAMETER π
the way that every single one of these matters, let's go:
typeβ has to be set to'display'. Like, that's non-negotiable bestie, that's the whole identity. πtextβ this gets used as the label for the text display control. It's the little name tag. π·οΈvalueβ the value to display. If you don't give it one, then$fdat{<name>}gets used instead. And here's the cute part: if the data you hand over invalueis an arrayref, then every element gets displayed on its own separate line. stack 'em up, slay. β¨hiddenβ if you set this, an appropriate hidden input field gets created automatically for you. it just happens. iconic behaviour. πnameβ this is used as the name for the hidden input field. πsplitβ if set, it splits the value into an array at\tand then displays every array element on a new line. tab-separated? more like tab-separated-and-served. π₯splitlinesβ if set, it splits the value into an array at\nand displays every array element on a new line. same energy, different delimiter. πvalue2textβ runs the value prefixed with the given parameter throughconvert_text, so it can be translated. yes, that's spelled "paramenter" in the original and we're keeping it fr fr, character for character. π
π«Ά Author
G. Richter (richter at embperl dot org), A. Beckert (beckert@ecos.de)
give them their flowers, they built this. π
β See Also
perl(1)EmbperlEmbperl::Form
π and that's the whole page bestie, no skips, no skimming, every single parameter accounted for. iykyk.
and for the little sign-off moment: this doc came from perl v5.34.0 and it's dated 2022-02-06 β so when you cite it, cite it with love. π periodt. π¦
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms