| 1 | # | ||
| 2 | # This file is part of autobox-Junctions | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2013 by Chris Weyl. | ||
| 5 | # | ||
| 6 | # This is free software, licensed under: | ||
| 7 | # | ||
| 8 | # The GNU Lesser General Public License, Version 2.1, February 1999 | ||
| 9 | # | ||
| 10 | package autobox::Junctions; | ||
| 11 | 2 | our $AUTHORITY = 'cpan:RSRCHBOY'; | |
| 12 | # git description: 0.001-6-gcbe3e58 | ||
| 13 | 2 | $autobox::Junctions::VERSION = '0.002'; | |
| 14 | |||
| 15 | # ABSTRACT: Autoboxified junction-style operators | ||
| 16 | |||
| 17 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 2 | ▶ | use parent 'autobox'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | 1 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 23 | 1 | my $class = shift @_; | |
| 24 | |||
| 25 | 1 | $class->SUPER::import( | |
| 26 | ARRAY => 'autobox::Junctions::ARRAY', | ||
| 27 | @_, | ||
| 28 | ); | ||
| 29 | } | ||
| 30 | |||
| 31 | { | ||
| 32 | package autobox::Junctions::ARRAY; | ||
| 33 | 2 | our $AUTHORITY = 'cpan:RSRCHBOY'; | |
| 34 | # git description: 0.001-6-gcbe3e58 | ||
| 35 | 2 | $autobox::Junctions::ARRAY::VERSION = '0.002'; | |
| 36 | |||
| 37 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 39 | |||
| 40 | 2 | ▶ | use Syntax::Keyword::Junction (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | |||
| 42 | 2 | ▶ | sub all { Syntax::Keyword::Junction::all( @{ $_[0] }) } |
|
Subroutine
all: called CC=1 SCAR=0.0
| |||
| 43 | 2 | ▶ | sub any { Syntax::Keyword::Junction::any( @{ $_[0] }) } |
|
Subroutine
any: called CC=1 SCAR=0.0
| |||
| 44 | 2 | ▶ | sub none { Syntax::Keyword::Junction::none(@{ $_[0] }) } |
|
Subroutine
none: called CC=1 SCAR=0.0
| |||
| 45 | 2 | ▶ | sub one { Syntax::Keyword::Junction::one( @{ $_[0] }) } |
|
Subroutine
one: called CC=1 SCAR=0.0
| |||
| 46 | } | ||
| 47 | |||
| 48 | 2 | !!42; | |
| 49 | |||
| 50 | __END__ | ||