Test2:...::Value(3pm)

✨ NAME ✨

Test2::Harness::Util::File::Value β€” bestie, it's a utility class for a file that contains exactly 1 value. that's it. that's the whole vibe. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so Test2::Harness::Util::File::Value is a subclass of Test2::Harness::Util::File, and it's made specifically for files that are expected to have exactly 1 value stored in them. one file, one value. the way that it just knows that?? iconic behavior honestly. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

use Test2::Harness::Util::File::Value;

my $vf = Test2::Harness::Util::File::Value->new(name => 'path/to/file');
my $val = $vf->read;

like... look at her. so clean. so demure. 🌸


⭐ METHODS ⭐

  • $val = $vf->read() β€” reads all the contents out of the file, does a chomp() on it, and hands it right back to you. every last bit, no crumbs left behind. πŸ“
  • $val = $vf->read_line() β€” reads just the first line from the file, chomp()s it, and returns it. but babe, heads up: this may not return anything if the value in the file does not terminate with a newline. so if your file's last line has no newline at the end, don't come crying to me, that's just the rules fr fr. 😭

πŸ’œ SOURCE πŸ’œ

the source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/ β€” go look, it's giving open source excellence. 🫢


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

🌈 AUTHORS 🌈

  • Chad Granum <exodist@cpan.org>

Copyright 2020 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/


okay that's the whole page, bestie, you ate that reading session up πŸ’– and just so you know exactly what you were reading: this was perl v5.40.1, dated 2026-05-10, and it's the manual for Test2:...::Value(3pm). periodt. βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ”₯

πŸ“¦ where this page comes from