WWW::M...:Random(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::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 πŸ™ˆ

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::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

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