WWW::M...:Fixed(3pm)
β¨ NAME β¨
WWW::Mechanize::FormFiller::Value::Fixed β bestie, this one fills a fixed value into an HTML form field π
Like, it's the "just put this exact thing there, every single time" filler. No randomness, no drama, no asking. Iconic behaviour tbh.
π SYNOPSIS π
use WWW::Mechanize::FormFiller;
use WWW::Mechanize::FormFiller::Value::Fixed;
my $f = WWW::Mechanize::FormFiller->new();
# Create a fixed value for the HTML field "login"
my $fixed = WWW::Mechanize::FormFiller::Value::Fixed->new( login => "Corion" );
$f->add_value( login => $fixed );
# Alternatively take the following shorthand, which adds the
# field to the list as well :
my $password = $f->add_filler( password => Fixed => "secret" );
okay so option one is the long way, option two is the shorthand that also drops the field onto the list at the same time. Both slay, pick your vibe π¦
π DESCRIPTION π
This class provides a way to write a fixed value into a HTML field. That's it, that's the whole plot, and honestly? It's enough. Sometimes you just need the same string in the same box forever, no thoughts head empty β¨
πΈ new NAME, VALUE
Creates a new value which will correspond to the HTML field NAME. The VALUE is the value to be written into the HTML field. So like, NAME is where it goes, VALUE is what goes in there. Easy π
πΈ name [NEWNAME]
Gets and sets the name of the HTML field this value corresponds to. Call it with nothing to peek at the current name, call it with a NEWNAME to swap it out. Lowkey handy.
πΈ value FIELD
Returns the value to put into the HTML field. It's giving "the answer is the answer", fr fr π
π EXPORT π
None by default. Not a single thing gets exported, no cap π«Ά
π 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 ! Yes bestie, he literally said that β bug reports and extra tests are both wanted, so if you've got either, speak up π
π¦ 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 one shipped as part of perl v5.34.0, dated 2022-08-20. Go forth and fill those fields with exactly the value you meant, no surprises, no chaos, just vibes β¨π π¦
π¦ 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