App::Yath::Util(3pm) | User Contributed Perl Documentation | App::Yath::Util(3pm) |
App::Yath::Util - General utilities for yath that do not fit anywhere else.
This package exports several tools used throughout yath that did not fit into any other package.
use App::Yath::Util qw{ find_pfile find_in_updir is_generated_test_pl fit_to_width isolate_stdout find_yath };
Note that nothing is exported by default, you must request each function to import.
Currently the only supported param is "vivify", when set to true the pfile will be created if one does not already exist.
The pfile is a file that tells yath that a persistent runner is active, and how to communicate with it.
This is used by some yath processes that need to print structured data to STDOUT without letting any third part modules they may load write to the real STDOUT.
Note: The result is cached so that subsequent calls will return the same path even if something installs a new yath script in another location that would otherwise be found first. This guarentees that a single process will not switch scripts.
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
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/
2023-03-12 | perl v5.36.0 |