|
NAMEpackage Shell::EnvImporter::Result - Results of a Shell::EnvImporter run SYNOPSIS use Shell::EnvImporter;
my $sourcer = Shell::EnvImporter->new(
command => $command,
) or die "$@";
my $result = $sourcer->result;
if ($result->succeeded()) {
print "Variables imported: ", join(", ", $result->imported), "\n";
} else {
print "Command failed! with ", $result->command_status, " status\n";
print "STDERR: ", $result->stderr, "\n";
}
DESCRIPTIONShell::EnvImporter allows you to import environment variable changes exported by an external script or command into the current environment. The Shell::EnvImporter::Shell object provides more control over interaction with the shell. METHODS
DATA MEMBERS
AUTHORDavid Faraldo, <dfaraldo@cpan.org> COPYRIGHT AND LICENSECopyright (C) 2005-2006 by Dave Faraldo This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. No warranty is expressed or implied. POD ERRORSHey! The above document had some coding errors, which are explained below:
|