WWW::M...:Fixed(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::Fixed β€” bestie, this one fills a fixed value into an HTML form field πŸ’–

Like, it's the "just put this exact thing there, every single time" filler. No randomness, no drama, no asking. Iconic behaviour tbh.


πŸŽ€ SYNOPSIS πŸŽ€

use WWW::Mechanize::FormFiller;
use WWW::Mechanize::FormFiller::Value::Fixed;

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

# Create a fixed value for the HTML field "login"
my $fixed = WWW::Mechanize::FormFiller::Value::Fixed->new( login => "Corion" );
$f->add_value( login => $fixed );

# Alternatively take the following shorthand, which adds the
# field to the list as well :
my $password = $f->add_filler( password => Fixed => "secret" );

okay so option one is the long way, option two is the shorthand that also drops the field onto the list at the same time. Both slay, pick your vibe πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

This class provides a way to write a fixed value into a HTML field. That's it, that's the whole plot, and honestly? It's enough. Sometimes you just need the same string in the same box forever, no thoughts head empty ✨

🌸 new NAME, VALUE

Creates a new value which will correspond to the HTML field NAME. The VALUE is the value to be written into the HTML field. So like, NAME is where it goes, VALUE is what goes in there. Easy πŸ’–

🌸 name [NEWNAME]

Gets and sets the name of the HTML field this value corresponds to. Call it with nothing to peek at the current name, call it with a NEWNAME to swap it out. Lowkey handy.

🌸 value FIELD

Returns the value to put into the HTML field. It's giving "the answer is the answer", fr fr πŸ’€


🌈 EXPORT 🌈

None by default. Not a single thing gets exported, no cap 🫢


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 ! Yes bestie, he literally said that β€” bug reports and extra tests are both wanted, so if you've got either, speak up πŸ’–


πŸ¦‹ 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::Interactive

And that's the whole page, bestie πŸŽ€ β€” this one shipped as part of perl v5.34.0, dated 2022-08-20. Go forth and fill those fields with exactly the value you meant, no surprises, no chaos, just vibes βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from