HTML::...assword(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::Widget::Element::Password β€” the tea β˜•

okay bestie, so this is a page from the User Contributed Perl Documentation for perl, and the module we're talking about is HTML::Widget::Element::Password. yes that's a mouthful, we're calling it the Password Element from here on. it's giving form field, but make it perl. πŸŽ€


✨ NAME ✨

HTML::Widget::Element::Password β€” the Password Element, fr fr. πŸ¦‹


🌸 SYNOPSIS 🌸

here's how you'd actually use it, no gatekeeping:

my $e = $widget->element( 'Password', 'foo' );
$e->comment('(Required)');
$e->fill(1);
$e->label('Foo');
$e->size(23);
$e->value('bar');

like, you grab the element off the widget, slap a comment on it, tell it to fill, give it a label, set the size, set the value. iconic behaviour, honestly. πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

Password Element. that's it, that's the description. short and mysterious, main character energy. πŸ™ˆ


⭐ METHODS ⭐

πŸ“ retain_default

if this is true, it overrides the default behaviour β€” so when a field is missing from the form submission, the xml output will contain the default value instead of being empty. lowkey a lifesaver, ngl. πŸ’–

🧚 containerize

(it's listed here, bestie β€” that's the whole entry, no extra lore attached. πŸ™ˆ)


🌈 SEE ALSO 🌈

  • HTML::Widget::Element β€” go read that one too, iykyk. πŸ¦‹

🫢 AUTHOR 🫢

Sebastian Riedel, sri@oook.de β€” shoutout to the legend who made this. ✨


πŸ‘‘ LICENSE πŸ‘‘

this library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source stays winning. πŸ’œ


🌟 and that's the whole page bestie β€” no cap, every last flag and line is right here.

so yeah, this was pulled from the perl v5.36.0 docs, dated 2023-08-10, and it lives under HTML::...assword(3pm) in the User Contributed Perl Documentation. mwah, go build something cute with it. πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from