NAME
Test2::Harness::Resource::Utilization::Util - Internal helpers for utilization resources.
EXPORTS
- @lines = read_file_lines($file)
- $first = read_file_lines($file)
-
Read
$fileline 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
()(orundefin scalar context) when the file does not exist, instead of croaking.
SOURCE
https://github.com/Test-More/App-Yath-Plugin-Utilization
MAINTAINERS
AUTHORS
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.