Package::Transporter::Generator::Potential::Shell - Bridge to Shell.pm


Package-Transporter documentation  | view source Contained in the Package-Transporter distribution.

Index


NAME

Top

Package::Transporter::Generator::Potential::Shell - Bridge to Shell.pm

SYNOPSIS

Top

	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);

DESCRIPTION

Top

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.

ANYTHING ELSE

Top

Please see the documentation of the upstream package Package::Transporter.


Package-Transporter documentation  | view source Contained in the Package-Transporter distribution.