|  |  
 |   |   
 NAMEExtUtils::Builder::Action::Function - Actions for perl function calls VERSIONversion 0.017 SYNOPSIS 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;
DESCRIPTIONThis 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. ATTRIBUTESargumentsThese are additional arguments to the action, that are passed on regardless of how the action is run. This attribute is optional. moduleThe module to be loaded. functionThe name of the function to be called. exportsIf "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';"). AUTHORLeon Timmermans <fawaka@gmail.com> COPYRIGHT AND LICENSEThis software is copyright (c) 2013 by Leon Timmermans. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. 
 
 |