WWW::M...efault(3pm)
π NAME π
WWW::Mechanize::FormFiller::Value::Default β bestie, this one fills a fixed value into an empty HTML form field. Like, it puts a value in, but only if there's nothing there already. It's giving "polite default." π
(It lives in the User Contributed Perl Documentation, and the manual page is WWW::M...efault(3pm), iykyk.)
β¨ SYNOPSIS β¨
use WWW::Mechanize::FormFiller;
use WWW::Mechanize::FormFiller::Value::Default;
my $f = WWW::Mechanize::FormFiller->new();
# Create a default value for the HTML field "login"
# This will put "Corion" into the login field unless
# there already is some other text.
my $login = WWW::Mechanize::FormFiller::Value::Default->new( login => "Corion" );
$f->add_value( login => $login );
# Alternatively take the following shorthand, which adds the
# field to the list as well :
# "If there is no password, put 'secret' there"
my $password = $f->add_filler( password => Default => "secret" );
okay so literally just copy that, it works, no cap. π«Ά
πΈ DESCRIPTION πΈ
This class provides a way to write a fixed value into a HTML field. That's the whole vibe. Fixed value. HTML field. Done. β¨
new NAME, VALUEβ Creates a new value which will correspond to the HTML fieldNAME. TheVALUEis the value to be written into the HTML field. So like,NAMEis which box,VALUEis what goes in it. πname [NEWNAME]β Gets and sets the name of the HTML field this value corresponds to. Give it aNEWNAMEand it sets, give it nothing and it just tells you what the name is. Bestie is flexible. πvalue FIELDβ Returns the value to put into the HTML field. That's it, that's the whole job. π
π EXPORT π
None by default. Nope. Zero. Nothing. You get what you ask for, periodt. π
π 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
Important legal bits, bestie, don't skip them β free software, same terms as Perl itself, and those copyright years are 2002,2003 exactly. π₯
π AUTHOR π
Max Maischein, <corion@cpan.org>
Please contact me if you find bugs or otherwise improve the module. More tests are also very welcome ! fr fr, they're literally asking for tests, if you've got spare ones send them over π¦
π SEE ALSO π
WWW::MechanizeWWW::Mechanize::ShellWWW::Mechanize::FormFillerWWW::Mechanize::FormFiller::Value::ValueWWW::Mechanize::FormFiller::Value::DefaultWWW::Mechanize::FormFiller::Value::RandomWWW::Mechanize::FormFiller::Value::Interactive
and that's the whole page, bestie β this is perl v5.34.0, dated 2022-08-20, dropping from the User Contributed Perl Documentation corner of the internet πβ¨ go fill some forms, you're gonna slay ππ¦
π¦ 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