Package::Transporter::Generator::Potential::Require_Customized - Include customized file content


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

Index


NAME

Top

Package::Transporter::Generator::Potential::Require_Customized - Include customized file content

SYNOPSIS

Top

	use lib '.'; # allows the .pl files to be read via require()

	use Package::Transporter sub{eval shift}, sub {
		my $generator = $_[0]->create_generator('::Require_Customized',
			'GREET_TO' => 'Mundo');
		$_[0]->register_potential($generator, 'FOR_ANY',
			'require_customized');
	};

	# This is not taint-safe!
	require_customized('hello_world.pl');

	exit(0);

DESCRIPTION

Top

Load the content of a file, appy search & replace according to a configurable hash and eval the result.

ANYTHING ELSE

Top

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


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