1Test::Smoke::Util::ExecUusteer(3C)ontributed Perl DocumeTnetsatt:i:oSnmoke::Util::Execute(3)
2
3
4

NAME

6       Test::Smoke::Util::Execute - Run a command and return its output.
7

SYNOPSIS

9           use Test::Smoke::Util::Execute;
10
11           my $ex = Test::Smoke::Execute->new(
12               verbose   => $level,
13               command   => $command,
14               arguments => [@arguments],
15           );
16           my $output = eval { $ex->run() };
17           if (my $error = $@) {
18               croak("Error running $command: $error");
19           }
20

DESCRIPTION

22   Test::Smoke::Util::Execute->new(%arguments)
23       Instantiate an object of this class
24
25       Arguments
26
27       ·   verbose => [0, 1, 2]
28
29       ·   command => $command_to_pass_to_qx
30
31       Returns
32
33       The instantiated object.
34
35   $executer->run()
36       Run the command with backticks.
37
38       Arguments
39
40       None
41
42       Returns
43
44       Context aware list or scalar.
45
46       If any error occured, "$self->exitcode" is set.
47
48   $executer->exitcode
49       Getter that returns the exitcode.
50
51   $executer->verbose
52       Accessor that returns the verbose.
53
54   $executer->arguments
55       Accessor that returns the arguments.
56

STUFF

58       (c) MMXIII - Abe Timmerman <abeltje@cpan.org>
59
60       This library is free software; you can redistribute it and/or modify it
61       under the same terms as Perl itself.
62
63       See:
64
65       ·   http://www.perl.com/perl/misc/Artistic.html
66
67       ·   http://www.gnu.org/copyleft/gpl.html
68
69       This program is distributed in the hope that it will be useful, but
70       WITHOUT ANY WARRANTY; without even the implied warranty of
71       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
72
73
74
75perl v5.30.0                      2019-08-19     Test::Smoke::Util::Execute(3)
Impressum