PITA::XML::Command - An executed command, with stored output
# Create a command my $dist = PITA::XML::Request->new( cmd => 'perl Makefile.PL', stdout => \"...", stderr => \"...", );
PITA::XML::Command is an object for holding information about a command executed during the installation process.
PITA::XML::Command
It holds the actual command, and the STDOUT and STDERR output.
The new constructor is used to create a new ::Command object.
new
It takes a set of key/value names params.
The cmd param should contains the command that was executed, as it was sent to the operating system, as as a plain string.
cmd
The stdout param should be the resulting output to STDOUT, provided as a reference to a SCALAR string.
stdout
STDOUT
SCALAR
The stderr param should be the resulting output to STDERR, provided as a reference to a SCALAR string.
stderr
STDERR
Returns a new PITA::XML::Command object, or dies on error.
The cmd accessor returns the actual command sent to the system.
The stdout accessor returns the output of the command as a SCALAR reference.
The stderr accessor returns the output of the command as a SCALAR reference.
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PITA-XML
For other issues, contact the author.
Adam Kennedy <adamk@cpan.org>, http://ali.as/
PITA::XML
The Perl Image-based Testing Architecture (http://ali.as/pita/)
Copyright 2005 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install PITA::XML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PITA::XML
CPAN shell
perl -MCPAN -e shell install PITA::XML
For more information on module installation, please visit the detailed CPAN module installation guide.