NAME

Test2::Harness::Resource::Utilization::Util - Internal helpers for utilization resources.

EXPORTS

@lines = read_file_lines($file)
$first = read_file_lines($file)

Read $file line by line. Newlines stripped. In scalar context returns only the first line and closes the filehandle immediately. Croaks if the file cannot be opened.

@lines = maybe_read_file_lines($file)
$first = maybe_read_file_lines($file)

As "read_file_lines" but returns () (or undef in scalar context) when the file does not exist, instead of croaking.

SOURCE

https://github.com/Test-More/App-Yath-Plugin-Utilization

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright 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/