1Test2::Harness::Util::FUisleer::CVoanlturei(b3u)ted PerlTeDsotc2u:m:eHnatranteisosn::Util::File::Value(3)
2
3
4

NAME

6       Test2::Harness::Util::File::Value - Utility class for a file that
7       contains exactly 1 value.
8

DESCRIPTION

10       This is a subclass of Test2::Harness::Util::File for files expected to
11       have exactly 1 value stored in them.
12

SYNOPSIS

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

METHODS

20       $val = $vf->read()
21           Read all contents from the file, "chomp()" it, and return it.
22
23       $val = $vf->read_line()
24           Read the first line from the file, "chomp()" it, and return it.
25           Note, this may not return anything if the value in the file does
26           not terminate with a newline.
27

SOURCE

29       The source code repository for Test2-Harness can be found at
30       http://github.com/Test-More/Test2-Harness/.
31

MAINTAINERS

33       Chad Granum <exodist@cpan.org>
34

AUTHORS

36       Chad Granum <exodist@cpan.org>
37
39       Copyright 2020 Chad Granum <exodist7@gmail.com>.
40
41       This program is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself.
43
44       See http://dev.perl.org/licenses/
45
46
47
48perl v5.32.0                      2020-07-2T8est2::Harness::Util::File::Value(3)
Impressum