Pluto::Engine
Functional Scripting for Perl 5
package Example; use Pluto::Engine; my $engine = Pluto::Engine->new( package => 'example', config => { tempdir => { package => 'File/Temp' } }, );
This package provides an engine for resolving dependencies and dispatching function calls, enabling a functional programming environment for Perl 5. See Rewire for more information on dependency injection.
This package uses type constraints from:
Types::Standard
This package has the following attributes:
config(HashRef)
This attribute is read-only, accepts (HashRef) values, and is optional.
(HashRef)
library(Object)
This attribute is read-only, accepts (Object) values, and is optional.
(Object)
package(Str)
This attribute is read-only, accepts (Str) values, and is required.
(Str)
services(Object)
space(Object)
This package implements the following methods:
call(Str | Object $invocant, Str $routine, Any @arguments) : Any
The call method dispatches a routine call.
# given: synopsis $engine->call('File::Temp', 'new', 'File::Temp');
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Pluto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pluto
CPAN shell
perl -MCPAN -e shell install Pluto
For more information on module installation, please visit the detailed CPAN module installation guide.