The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Package::Transporter::Generator::Require_Customized - include customized file content

SYNOPSIS

        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

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

ANYTHING ELSE

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