WWW::M...:Random(3pm)
π WWW::M...:Random(3pm) π
okay bestie, sit down, hydrate, and let me tell you about WWW::Mechanize::FormFiller::Value::Random β a lil Perl module from the WWW::Mechanize::FormFiller family that literally just picks a random value out of a list and yeets it into your HTML form field. no cap. it's giving "chaos but make it useful" π
β¨ NAME β¨
WWW::Mechanize::FormFiller::Value::Random β randomly fill out a HTML form field π²
πΈ SYNOPSIS πΈ
like, here's the vibe:
use WWW::Mechanize::FormFiller;
use WWW::Mechanize::FormFiller::Value::Random;
my $f = WWW::Mechanize::FormFiller->new();
# Create a random value for the HTML field "login"
my $login = WWW::Mechanize::FormFiller::Value::Random->new( login => "root","administrator","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 a random one out of the list there
my $password = $f->add_filler( password => Random => "foo","bar","baz" );
see how easy that was?? obsessed. π«Ά
π¦ DESCRIPTION π¦
so basically this class is the plug for writing a randomly chosen value into a HTML field. that's it. that's the whole job. main character energy fr fr.
π new NAME, LIST
creates a shiny new value that corresponds to the HTML field "NAME". and "LIST"? that's a list of items, and one of them gets returned every single time you call "value()".
lowkey important: there is no persistence of these values. none. zero. it's a fresh vibe every call π
for items that can only take a finite set of elements, a random element out of that list is taken by default. iconic behaviour, honestly.
π name [NEWNAME]
gets and sets the name of the HTML field this value corresponds to. simple. clean. we love her.
β value FIELD
returns the value to put into the HTML field. that's it bestie, that's the whole function π
π EXPORT π
None by default.
like... nothing. nada. you get what you get and you don't throw a fit π
π 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 asking for bug reports AND more tests in the same breath β king behaviour honestly π₯
π§ SEE ALSO π§
WWW::MechanizeWWW::Mechanize::ShellWWW::Mechanize::FormFillerWWW::Mechanize::FormFiller::Value::ValueWWW::Mechanize::FormFiller::Value::DefaultWWW::Mechanize::FormFiller::Value::FixedWWW::Mechanize::FormFiller::Value::Interactive
and that's the whole page, bestie!! π this was perl v5.34.0, dated 2022-08-20, brought to you by WWW::M...:Random(3pm) β stay random, stay slay, mwah πβ¨
π¦ 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