logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ExtUtils::Builder::Action::Code - Action objects for perl code

Attributes

code
       This is a code-ref containing the action. On execution, it is passed the arguments of the execute method;
       when run as command it is passed @ARGV. In either case, "arguments" is also passed. Of not given, it is
       "eval"ed from "serialized".

   modules
       This is an optional list of modules that will be dynamically loaded before the action is run in any way.
       This attribute is optional.

Author

       Leon Timmermans <fawaka@gmail.com>

Description

       This is a primitive action object wrapping a piece of perl code. The easiest way to use it is to execute
       it immediately. For more information on using actions, see ExtUtils::Builder::Action. The core attributes
       are code and serialized, though only one of them must be given, both is strongly recommended.

Name

       ExtUtils::Builder::Action::Code - Action objects for perl code

Synopsis

        my $action = ExtUtils::Builder::Action::Code->new(
            code      => 'Frob::nicate(@_)',
            modules   => ['Frob'],
            message   => 'frobnicateing foo',
        );
        $action->execute(target => 'bar');
        say "Executed: ", join ' ', @$_, target => 'bar' for $action->to_command;

Version

       version 0.017

See Also