Bolts::Injector::Store::Hash - Inject values into a hash
version 0.143170
use Bolts; my $counter = 0; artifact thing => ( builder => sub { +{} }, keys => { counter => builder { ++$counter }, }, );
This performs injection of a value into a hash.
Bolts::Injector
This is the name of the hash key to perform injection upon.
Defaults to the "key" in Bolts::Injector.
Performs the injection into a hash by key.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Bolts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bolts
CPAN shell
perl -MCPAN -e shell install Bolts
For more information on module installation, please visit the detailed CPAN module installation guide.