Form::...uration(3pm)
π NAME π
Embperl::Form::Control::price β bestie, it's a price input control, and it can even carry a lil unit inside an Embperl Form π
So this page lives in the User Contributed Perl Documentation, and the manual it belongs to is Form::...uration(3pm) (yes the title got cutely truncated, we don't ask questions π ). It's perl v5.34.0, stamped 2022-02-06, and we'll wave at it again at the end π«Ά
β¨ SYNOPSIS β¨
{
type => 'price',
text => 'blabla',
name => 'foo',
unit => 'sec',
}
Look at her. Four little keys and she's ready to serve π
πΈ DESCRIPTION πΈ
Okay so lowkey this is the thing you drop into an Embperl Form when you want a price input control. It takes a number and formats it as a money amount β like, actual currency vibes, not just a sad raw number πβ¨
And as a lil bonus, if you want, it can show a unit right after the input field. Obsessed.
Heads up bestie: this page doesn't teach you the parameters β for that you gotta go read Embperl::Form on how to specify parameters. She's the main character, this page is just the side quest π§
π PARAMETER π
typeβ this one needs to be'price'. Like, non-negotiable. It's giving "the whole point" πnameβ the name of the control. Name her something cute, she deserves it π«Άtextβ this becomes the label for the numeric input control. Yes, the little text that sits there being informative β¨sizeβ the size, in characters. (Default:10) πmaxlengthβ the maximum length, in characters. (Original says "maximun", we still love her, the meaning is maximum π)unitβ a string that gets displayed to the right of the input field. (Default: empty string) β so by default there's literally nothing there, no unit, no nothing, just vibes πuse_commaβ if you set this, the decimal character is a comma instead of a point. (Default:on) β so yeah, comma is the default behaviour fr fr π
π Author π
G. Richter (richter at embperl dot org) β thank you for your service, icon π
π¦ See Also π¦
perl(1)EmbperlEmbperl::Form
Go read them, they're part of the lore, iykyk πβ¨
Sign-off time bestie π This whole thing is perl v5.34.0, dated 2022-02-06, from the User Contributed Perl Documentation manual page Form::...uration(3pm). Slay, stay formatted, and always pass type => 'price' ππ
β¨
π¦ 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