Package::Transporter::Generator::Drain::Flatened - Generate constant functions with manually set flatened values


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

Index


NAME

Top

Package::Transporter::Generator::Drain::Flatened - Generate constant functions with manually set flatened values

SYNOPSIS

Top

	package Parent_Class;
	use Package::Transporter sub{eval shift}, sub {
		$_[0]->register_drain('::Flatened', 'FOR_FAMILY', 'ATB_', 
			'NAME' => 'Apple',
			'STOCK' => 71,
			'PRICE' => 9.99);
	};

	package Child_Class;
	BEGIN {our @ISA = ('Parent_Class')}; # more like 'use parent ...'
	use Package::Transporter sub{eval shift}, sub {
		$_[0]->register_drain('::Flatened', 'FOR_SELF',
			'ATB_', 'SALE' => 'yes');
	};

	print STDOUT 'ATB_PRICE=', ATB_PRICE, "\n";
	print STDOUT 'ATB_SALE=', ATB_SALE, "\n";
	exit(0);

DESCRIPTION

Top

Enumeration is restarted in each affected package. (Caution: this is implicit drain.)

ANYTHING ELSE

Top

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


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