WWW::M...m::Word(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

✨ WWW::Mechanize::FormFiller::Value::Random::Word πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation corner of the internet, where this little page β€” WWW::M...m::Word(3pm), aka the manual page for WWW::Mechanize::FormFiller::Value::Random::Word β€” lives. it's giving "tiny module, huge main character energy". let's go πŸ¦‹


🌸 NAME 🌸

WWW::Mechanize::FormFiller::Value::Random::Word β€” drop a random word into an HTML form field. that's it. that's the whole job. and she does it flawlessly, no cap πŸ’…


✨ SYNOPSIS ✨

use WWW::Mechanize::FormFiller;
use WWW::Mechanize::FormFiller::Value::Random::Word;

my $f = WWW::Mechanize::FormFiller->new();

# Create a random value for the HTML field "login"
my $login = WWW::Mechanize::FormFiller::Value::Random::Word->new( login => size => 1 );
$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 a random one out of the list there
my $password = $f->add_filler( password => Random::Word => size => 1 );

# Spew some bogus text into the comments field
my $comments = $f->add_filler( comments => Random::Word => size => 10 );

like, look at her. three lines and you're already filling forms with nonsense words. iconic behavior 🌈


πŸ’œ DESCRIPTION πŸ’œ

This class provides a way to write a randomly chosen value into a HTML field. fr fr, that's the vibe β€” you point it at a field, it points a random word at the field. πŸŽ€

🫢 new NAME, LIST

Creates a new value which will correspond to the HTML field "NAME". The "LIST" is the list of arguments passed to Data::Random::rand_words. If the list is empty, size => 1 is assumed.

so if you're like "bestie I have no opinions today", she just goes size => 1 for you. considerate queen. πŸ‘‘

🌟 name [NEWNAME]

Gets and sets the name of the HTML field this value corresponds to.

πŸ¦‹ value FIELD

Returns the value to put into the HTML field.


πŸ’– EXPORT πŸ’–

None by default.

nothing gets yeeted into your namespace unless you ask. respectful. we love a boundary-having module. πŸ™ˆ

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 test coverage, this is so real 😭 go submit a bug report bestie, he literally asked πŸ’…

🌈 SEE ALSO 🌈

  • Data::Random
  • WWW::Mechanize
  • WWW::Mechanize::Shell
  • WWW::Mechanize::FormFiller
  • WWW::Mechanize::FormFiller::Value::Value
  • WWW::Mechanize::FormFiller::Value::Default
  • WWW::Mechanize::FormFiller::Value::Fixed
  • WWW::Mechanize::FormFiller::Value::Interactive

okay that's the whole page, you ate it, you understood it, and now you can go fill forms like the icon you are πŸ§šπŸ’–

sign-off time: this page came to you courtesy of perl v5.34.0, dated 2022-08-20, and the manual page name WWW::M...m::Word(3pm) β€” say it with me, slay. ⭐

πŸ“¦ where this page comes from