WWW::M...efault(3pm)

πŸ“¦
version 0.13 Β· 2 versions
  • 0.13 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.12 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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 field NAME. The VALUE is the value to be written into the HTML field. So like, NAME is which box, VALUE is what goes in it. πŸ’–
  • name [NEWNAME] β€” Gets and sets the name of the HTML field this value corresponds to. Give it a NEWNAME and 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. πŸ™ˆ

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::Mechanize
  • WWW::Mechanize::Shell
  • WWW::Mechanize::FormFiller
  • WWW::Mechanize::FormFiller::Value::Value
  • WWW::Mechanize::FormFiller::Value::Default
  • WWW::Mechanize::FormFiller::Value::Random
  • WWW::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