ExtUtils::Builder::Action::Function(3pm)

ExtUtils::Builder::Action::Function3pm

Actions for perl function calls

Usage

 my $action = ExtUtils::Builder::Action::Function->new(
     module    => 'Frob',
     function  => 'nicate',
     arguments => [ target => 'bar' ],
 );
 $action->execute();
 say "Executed: ", join ' ', @$_, target => 'bar' for $action->to_command;

Version

version 0.017

Overview

This Action class is a specialization of Action::Perl that makes the common case of calling a simple function easier. The first statement in the synopsis is roughly equivalent to:

 my $action = ExtUtils::Builder::Action::Code->new(
     code       => 'Frob::nicate(target => 'bar')',
     module     => ['Frob'],
     message    => 'Calling Frob::nicate',
 );

Except that it serializes more cleanly.

Attributes

arguments

These are additional arguments to the action, that are passed on regardless of how the action is run. This attribute is optional.

module

The module to be loaded.

function

The name of the function to be called.

exports

If "always", the function is assumed to be exported by the module. If "explicit", it's assumed to need explicit exporting (e.g. "use Module 'function';").

Author

Leon Timmermans <[email protected]>

From libextutils-builder-perl 0.017-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.