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 achomp()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 π§
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
- ubuntu stonking: libtest2-harness-perl 1.000172-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms