WWW::M...active(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::Interactive πŸ’–

okay so bestie, welcome to the manual page for WWW::Mechanize::FormFiller::Value::Interactive β€” it's the <hotpink>WWW::M...active(3pm)</hotpink> page, a User Contributed Perl Documentation moment, and it's literally the module that makes your script stop and ask a whole actual human what to type into a form field. group-chat energy: you, your terminal, and a text prompt. iconic.


✨ NAME ✨

WWW::Mechanize::FormFiller::Value::Interactive β€” Ask the user to fill out a HTML form field 🫢

like. it asks. the user. out loud. no cap.


🌸 SYNOPSIS 🌸

  use WWW::Mechanize::FormFiller;
  use WWW::Mechanize::FormFiller::Value::Interactive;

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

  # Ask the user for the "login"
  my $login = WWW::Mechanize::FormFiller::Value::Interactive->new( 'login' );
  $f->add_value( login => $login );

  # Alternatively take the following shorthand, which adds the
  # field to the list as well :

  # "Ask the user for the password"
  my $password = $f->add_filler( password => 'Interactive' );

see how there's two ways to do the exact same thing? one is the long way (construct it yourself, then add_value), and one is the glow-up shorthand where add_filler also drops the field into the list for you. both valid, both slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this class gives you a way to write a value that gets read from STDIN into a HTML field. that's the whole vibe. you're not hardcoding anything, you're asking. main character energy fr fr.

⭐ new NAME

Creates a new value which will correspond to the HTML field "NAME".

like, you hand it the name of the field and it's like "bet, I got you." ✨

⭐ name [NEWNAME]

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

get it, set it, whatever you need. flexible queen. πŸ‘‘

⭐ value FIELD

Returns the value to put into the HTML field. The value will be read from STDIN. The name of the HTML field to be read and the current value will be printed to STDOUT. An empty string will use the given default. There currently is no way to enter an empty string if there is a different default string.

⚠️ okay so this one is important, don't skim it: an empty string will use the given default. and there currently is no way to enter an empty string if there is a different default string. so if the default is like "root" and you want it blank? bestie. you can't. that's just the situation. 😭 (it's a real documented limitation, not me being dramatic β€” well, I'm also being dramatic, but it's real.)

πŸŽ€ EXPORT πŸŽ€

None by default.

nothing sneaks into your namespace unless you ask. respectful. 🫢


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 tests, respectfully β€” genuinely though, bugs and improvements and extra tests are all wanted, so hmu.

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

and that's the whole page, bestie πŸ’– this was written up for perl v5.34.0, dated 2022-08-20, and it lives at WWW::M...active(3pm). go ask your user some questions. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from