WWW::M...:Chars(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::Random::Chars β€” bestie, this is a Perl module (manual section 3pm, User Contributed Perl Documentation, no less πŸ’…) and its whole entire job is filling random characters into an HTML form field. That's it. That's the gig. And it ate. πŸŽ€


🌸 SYNOPSIS 🌸

okay so here's how you actually use it, copy-paste friendly, no cap:

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

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

  # Create a random value for the HTML field "login"

  my $login = WWW::Mechanize::FormFiller::Value::Random::Chars->new(
                       login => set => 'alpha', min => 3, max => 8 );
  $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::Chars' );

the shorthand at the bottom is lowkey the main character β€” one line and your field is in the list AND filled. obsessed. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this class gives you a way to write a randomly chosen value into a HTML field. Random value goes in, chaos is managed, everyone slays. ✨

πŸ’– 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_chars. And if you hand it an empty list β€” no args, nothing, empty β€” then set => 'alpha', min => 5, max => 8 is just assumed. Like it's got a default fit ready to go. πŸ‘‘

πŸ’œ name [NEWNAME]

Gets and sets the name of the HTML field this value corresponds to. Read it, write it, whatever you need bestie. πŸ”

πŸ“ value FIELD

Returns the value to put into the HTML field. That's the whole thing. It gives you the value. Periodt. πŸ’…

🧚 EXPORT

None by default. Like, don't expect anything to come flying out of here for free. Nothing. Zero. Zip. πŸ™ˆ

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

(yes, TWO years in the copyright line, 2002 and 2003, and we're respecting both of them, we don't round up around here ✨)


🌈 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, if you find a bug, tell him. And if you write more tests?? literal hero behavior. 🫢

⭐ SEE ALSO ⭐

go read these too, they're all part of the same little universe:

  • 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

and that's the whole page bestie!! πŸ’– this little legend shipped as perl v5.34.0, dated 2022-08-20, and honestly? iconic. go fill some forms. random chars only. mwah. πŸŽ€βœ¨πŸ¦‹πŸ’…

πŸ“¦ where this page comes from