autobox::Junctions - Autoboxified junction-style operators
This document describes version 0.002 of autobox::Junctions - released June 22, 2016 as part of autobox-Junctions.
# somewhere above... use autobox::Junctions; # somewhere below... my @explodey = qw{ bing bang boom }; warn "boom!\n" if @explody->any eq 'boom'; my $still_explody = [ @explodey ]; warn "not all explody\n" unless $still_explody->all eq 'boom'; # now, bonus points... use autobox::Core; my $weapons = { mateu => 'bow & arrow', # fearsome hunter ether => 'disarming smile', # Canadian jnap => 'shotgun', # upstate NY }; warn 'mateu is armed!' if $weapons->keys->any eq 'mateu' warn '...but at least no one has a nuke' if $weapons->values->none eq 'nuke';
This is a simple autoboxifying wrapper around Syntax::Keyword::Junction, that provides array and array references with the functions provided by that package as methods for arrays: any, all, one, and none.
See: "any" in Syntax::Keyword::Junction, "all" in Syntax::Keyword::Junction, "one" in Syntax::Keyword::Junction, and "none" in Syntax::Keyword::Junction.
Please see those modules/websites for more information related to this module.
Syntax::Keyword::Junction
autobox
Please report any bugs or feature requests on the bugtracker website https://github.com/RsrchBoy/autobox-Junctions/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Chris Weyl <cweyl@alumni.drew.edu>
Please note I do not expect to be gittip'ed or flattr'ed for this work, rather it is simply a very pleasant surprise. I largely create and release works like this because I need them or I find it enjoyable; however, don't let that stop you if you feel like it ;)
Flattr, Gratipay, or indulge my Amazon Wishlist... If and *only* if you so desire.
Сергей Романов <sromanov-dev@yandex.ru>
This software is Copyright (c) 2013 by Chris Weyl.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999
To install autobox::Junctions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm autobox::Junctions
CPAN shell
perl -MCPAN -e shell install autobox::Junctions
For more information on module installation, please visit the detailed CPAN module installation guide.