WWW::M...active(3pm)
π WWW::Mechanize::FormFiller::Value::Interactive π
okay so bestie, welcome to the manual page for WWW::Mechanize::FormFiller::Value::Interactive β it's the <hotpink>WWW::M...active(3pm)</hotpink> page, a User Contributed Perl Documentation moment, and it's literally the module that makes your script stop and ask a whole actual human what to type into a form field. group-chat energy: you, your terminal, and a text prompt. iconic.
β¨ NAME β¨
WWW::Mechanize::FormFiller::Value::Interactive β Ask the user to fill out a HTML form field π«Ά
like. it asks. the user. out loud. no cap.
πΈ SYNOPSIS πΈ
use WWW::Mechanize::FormFiller;
use WWW::Mechanize::FormFiller::Value::Interactive;
my $f = WWW::Mechanize::FormFiller->new();
# Ask the user for the "login"
my $login = WWW::Mechanize::FormFiller::Value::Interactive->new( 'login' );
$f->add_value( login => $login );
# Alternatively take the following shorthand, which adds the
# field to the list as well :
# "Ask the user for the password"
my $password = $f->add_filler( password => 'Interactive' );
see how there's two ways to do the exact same thing? one is the long way (construct it yourself, then add_value), and one is the glow-up shorthand where add_filler also drops the field into the list for you. both valid, both slay. π
π¦ DESCRIPTION π¦
so this class gives you a way to write a value that gets read from STDIN into a HTML field. that's the whole vibe. you're not hardcoding anything, you're asking. main character energy fr fr.
β new NAME
Creates a new value which will correspond to the HTML field "NAME".
like, you hand it the name of the field and it's like "bet, I got you." β¨
β name [NEWNAME]
Gets and sets the name of the HTML field this value corresponds to.
get it, set it, whatever you need. flexible queen. π
β value FIELD
Returns the value to put into the HTML field. The value will be read from STDIN. The name of the HTML field to be read and the current value will be printed to STDOUT. An empty string will use the given default. There currently is no way to enter an empty string if there is a different default string.
β οΈ okay so this one is important, don't skim it: an empty string will use the given default. and there currently is no way to enter an empty string if there is a different default string. so if the default is like "root" and you want it blank? bestie. you can't. that's just the situation. π (it's a real documented limitation, not me being dramatic β well, I'm also being dramatic, but it's real.)
π EXPORT π
None by default.
nothing sneaks into your namespace unless you ask. respectful. π«Ά
π COPYRIGHT AND LICENSE π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Copyright (C) 2002,2003 Max Maischein
π AUTHOR π
Max Maischein, <corion@cpan.org>
Please contact me if you find bugs or otherwise improve the module. More tests are also very welcome !
π not me begging for tests, respectfully β genuinely though, bugs and improvements and extra tests are all wanted, so hmu.
π SEE ALSO π
WWW::MechanizeWWW::Mechanize::ShellWWW::Mechanize::FormFillerWWW::Mechanize::FormFiller::Value::ValueWWW::Mechanize::FormFiller::Value::DefaultWWW::Mechanize::FormFiller::Value::RandomWWW::Mechanize::FormFiller::Value::Fixed
and that's the whole page, bestie π this was written up for perl v5.34.0, dated 2022-08-20, and it lives at WWW::M...active(3pm). go ask your user some questions. periodt. πβ¨
π¦ where this page comes from
- debian bookworm: libwww-mechanize-formfiller-perl 0.13-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwww-mechanize-formfiller-perl 0.13-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwww-mechanize-formfiller-perl 0.13-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwww-mechanize-formfiller-perl 0.13-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwww-mechanize-formfiller-perl 0.13-1 Β· 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