| Package-Transporter documentation | view source | Contained in the Package-Transporter distribution. |
Package::Transporter::Generator::Potential::Shell - Bridge to Shell.pm
delete($ENV{'ENV'});
$ENV{'PATH'} = '/usr/local/bin:/usr/bin:/bin';
use Package::Transporter sub{eval shift}, sub {
$_[0]->register_potential('::Shell', 'FOR_SELF');
};
sub yn($) { print STDERR ($_[0] ? 'Yes' : 'No'), "\n"; };
yn(!defined(&shell_ls));
yn(potentially_defined('shell_ls'));
print STDOUT shell_ls('-l');
yn(defined(&shell_ls));
exit(0);
Executes the part of the dynamic subroutine name after shell_ as a shell command. The work is done by Shell.pm, but not via its AUTOLOAD.
Please see the documentation of the upstream package Package::Transporter.
| Package-Transporter documentation | view source | Contained in the Package-Transporter distribution. |