1autobox::Junctions(3) User Contributed Perl Documentationautobox::Junctions(3)
2
3
4

NAME

6       autobox::Junctions - Autoboxified junction-style operators
7

VERSION

9       This document describes version 0.002 of autobox::Junctions - released
10       June 22, 2016 as part of autobox-Junctions.
11

SYNOPSIS

13           # somewhere above...
14           use autobox::Junctions;
15
16           # somewhere below...
17           my @explodey = qw{ bing bang boom };
18           warn "boom!\n"
19               if @explody->any eq 'boom';
20
21           my $still_explody = [ @explodey ];
22           warn "not all explody\n"
23               unless $still_explody->all eq 'boom';
24
25           # now, bonus points...
26           use autobox::Core;
27
28           my $weapons = {
29               mateu => 'bow & arrow',     # fearsome hunter
30               ether => 'disarming smile', # Canadian
31               jnap  => 'shotgun',         # upstate NY
32           };
33
34           warn 'mateu is armed!'
35               if $weapons->keys->any eq 'mateu'
36
37           warn '...but at least no one has a nuke'
38               if $weapons->values->none eq 'nuke';
39

DESCRIPTION

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

AUTOBOXED METHODS

47       See: "any" in Syntax::Keyword::Junction, "all" in
48       Syntax::Keyword::Junction, "one" in Syntax::Keyword::Junction, and
49       "none" in Syntax::Keyword::Junction.
50

SEE ALSO

52       Please see those modules/websites for more information related to this
53       module.
54
55       ·   Syntax::Keyword::Junction
56
57       ·   autobox
58

BUGS

60       Please report any bugs or feature requests on the bugtracker website
61       https://github.com/RsrchBoy/autobox-Junctions/issues
62
63       When submitting a bug or request, please include a test-file or a patch
64       to an existing test-file that illustrates the bug or desired feature.
65

AUTHOR

67       Chris Weyl <cweyl@alumni.drew.edu>
68
69   I'm a material boy in a material world
70       Please note I do not expect to be gittip'ed or flattr'ed for this work,
71       rather it is simply a very pleasant surprise. I largely create and
72       release works like this because I need them or I find it enjoyable;
73       however, don't let that stop you if you feel like it ;)
74
75       Flattr
76       <https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fautobox-
77       Junctions&title=RsrchBoy's%20CPAN%20autobox-
78       Junctions&tags=%22RsrchBoy's%20autobox-Junctions%20in%20the%20CPAN%22>,
79       Gratipay <https://gratipay.com/RsrchBoy/>, or indulge my Amazon
80       Wishlist <http://bit.ly/rsrchboys-wishlist>...  If and *only* if you so
81       desire.
82

CONTRIBUTOR

84       Сергей Романов <sromanov-dev@yandex.ru>
85
87       This software is Copyright (c) 2013 by Chris Weyl.
88
89       This is free software, licensed under:
90
91         The GNU Lesser General Public License, Version 2.1, February 1999
92
93
94
95perl v5.32.0                      2020-07-28             autobox::Junctions(3)
Impressum