| 1 |
NAME |
| 2 |
|
| 3 |
autobox::Junctions - Autoboxified junction-style operators |
| 4 |
|
| 5 |
VERSION |
| 6 |
|
| 7 |
This document describes version 0.002 of autobox::Junctions - released |
| 8 |
June 22, 2016 as part of autobox-Junctions. |
| 9 |
|
| 10 |
SYNOPSIS |
| 11 |
|
| 12 |
# somewhere above... |
| 13 |
use autobox::Junctions; |
| 14 |
|
| 15 |
# somewhere below... |
| 16 |
my @explodey = qw{ bing bang boom }; |
| 17 |
warn "boom!\n" |
| 18 |
if @explody->any eq 'boom'; |
| 19 |
|
| 20 |
my $still_explody = [ @explodey ]; |
| 21 |
warn "not all explody\n" |
| 22 |
unless $still_explody->all eq 'boom'; |
| 23 |
|
| 24 |
# now, bonus points... |
| 25 |
use autobox::Core; |
| 26 |
|
| 27 |
my $weapons = { |
| 28 |
mateu => 'bow & arrow', # fearsome hunter |
| 29 |
ether => 'disarming smile', # Canadian |
| 30 |
jnap => 'shotgun', # upstate NY |
| 31 |
}; |
| 32 |
|
| 33 |
warn 'mateu is armed!' |
| 34 |
if $weapons->keys->any eq 'mateu' |
| 35 |
|
| 36 |
warn '...but at least no one has a nuke' |
| 37 |
if $weapons->values->none eq 'nuke'; |
| 38 |
|
| 39 |
DESCRIPTION |
| 40 |
|
| 41 |
This is a simple autoboxifying wrapper around |
| 42 |
Syntax::Keyword::Junction, that provides array and array references |
| 43 |
with the functions provided by that package as methods for arrays: any, |
| 44 |
all, one, and none. |
| 45 |
|
| 46 |
AUTOBOXED METHODS |
| 47 |
|
| 48 |
See: "any" in Syntax::Keyword::Junction, "all" in |
| 49 |
Syntax::Keyword::Junction, "one" in Syntax::Keyword::Junction, and |
| 50 |
"none" in Syntax::Keyword::Junction. |
| 51 |
|
| 52 |
SEE ALSO |
| 53 |
|
| 54 |
Please see those modules/websites for more information related to this |
| 55 |
module. |
| 56 |
|
| 57 |
* Syntax::Keyword::Junction |
| 58 |
|
| 59 |
* autobox |
| 60 |
|
| 61 |
BUGS |
| 62 |
|
| 63 |
Please report any bugs or feature requests on the bugtracker website |
| 64 |
https://github.com/RsrchBoy/autobox-Junctions/issues |
| 65 |
|
| 66 |
When submitting a bug or request, please include a test-file or a patch |
| 67 |
to an existing test-file that illustrates the bug or desired feature. |
| 68 |
|
| 69 |
AUTHOR |
| 70 |
|
| 71 |
Chris Weyl <[email protected]> |
| 72 |
|
| 73 |
I'm a material boy in a material world |
| 74 |
|
| 75 |
Please note I do not expect to be gittip'ed or flattr'ed for this work, |
| 76 |
rather it is simply a very pleasant surprise. I largely create and |
| 77 |
release works like this because I need them or I find it enjoyable; |
| 78 |
however, don't let that stop you if you feel like it ;) |
| 79 |
|
| 80 |
Flattr |
| 81 |
<https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fautobox-Junctions&title=RsrchBoy's%20CPAN%20autobox-Junctions&tags=%22RsrchBoy's%20autobox-Junctions%20in%20the%20CPAN%22>, |
| 82 |
Gratipay <https://gratipay.com/RsrchBoy/>, or indulge my Amazon |
| 83 |
Wishlist <http://bit.ly/rsrchboys-wishlist>... If and *only* if you so |
| 84 |
desire. |
| 85 |
|
| 86 |
CONTRIBUTOR |
| 87 |
|
| 88 |
Сергей Романов <[email protected]> |
| 89 |
|
| 90 |
COPYRIGHT AND LICENSE |
| 91 |
|
| 92 |
This software is Copyright (c) 2013 by Chris Weyl. |
| 93 |
|
| 94 |
This is free software, licensed under: |
| 95 |
|
| 96 |
The GNU Lesser General Public License, Version 2.1, February 1999 |
| 97 |
|