VERSION
This document describes version 0.001 of autobox::Junctions - released October 03, 2013 as part of autobox-Junctions.SYNOPSIS
# 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';
DESCRIPTION
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.AUTOBOXED METHODS
See: ``any'' in Syntax::Keyword::Junction, LSyntax::Keyword::Junction/all>, ``one'' in Syntax::Keyword::Junction, and ``none'' in Syntax::Keyword::Junction.SOURCE
The development version is on github at <http://github.com/RsrchBoy/autobox-Junctions> and may be cloned from <git://github.com/RsrchBoy/autobox-Junctions.git>BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/RsrchBoy/autobox-Junctions/issuesWhen 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.
AUTHOR
Chris Weyl <[email protected]>COPYRIGHT AND LICENSE
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