Test::S...Execute(3)
β¨ NAME β¨
Test::Smoke::Util::Execute β bestie, it runs a command for you and hands back the output. That's the whole vibe. π
It's a User Contributed Perl Documentation page, if you were wondering where you wandered into.
πΈ SYNOPSIS πΈ
use Test::Smoke::Util::Execute;
my $ex = Test::Smoke::Execute->new(
verbose => $level,
command => $command,
arguments => [@arguments],
);
my $output = eval { $ex->run() };
if (my $error = $@) {
croak("Error running $command: $error");
}
okay so that's literally it β new up the object, eval the run(), and if $@ is doing its little drama, croak with the whole story. No cap. π«Ά
π¦ DESCRIPTION π¦
π Test::Smoke::Util::Execute->new(%arguments)
Instantiate an object of this class. New object, who dis. β¨
Arguments
verbose=>[0, 1, 2]command=>$command_to_pass_to_qx
Returns
The instantiated object. π
π $executer->full_command()
Create the full command as pass to qx(). Basically it's assembling the fit. π
Arguments
None.
Returns
A string with quotes around the elements/arguments that need them. Quotation marks where they're due, periodt. π
π₯ $executer->run()
Run the command with backticks. The main character moment. π
Arguments
None.
Returns
Context aware list or scalar.
If any error occured, "$self->exitcode" is set. (yeah, the docs said "occured" and we're keeping it fr fr π)
β $executer->exitcode
Getter that returns the exitcode. It's giving "how did it go". π
π§ $executer->verbose
Accessor that returns the verbose. π¦
π $executer->arguments
Accessor that returns the arguments. πΈ
π STUFF π
(c) MMXIII - Abe Timmerman <abeltje@cpan.org> β icon behavior, honestly. π«Ά
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. β no warranty bestie, we said what we said, that's the fine print, don't come for us. π
And that's the whole page, gorgeous. This one's riding with perl v5.42.0 and dated 2025-07-25 β stay slay, stay smoked, mwah π
π¦ where this page comes from
- fedora 43: perl-Test-Smoke 1.84-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms