1 package Perl6::Junction::Any;
3 our $VERSION = '1.40000';
5 use base 'Perl6::Junction::Base';
8 return regex_eq(@_) if ref( $_[1] ) eq 'Regexp';
10 my ( $self, $test ) = @_;
13 return 1 if $_ == $test;
20 return regex_ne(@_) if ref( $_[1] ) eq 'Regexp';
22 my ( $self, $test ) = @_;
25 return 1 if $_ != $test;
32 my ( $self, $test, $switch ) = @_;
34 return num_le( $self, $test ) if $switch;
37 return 1 if $_ >= $test;
44 my ( $self, $test, $switch ) = @_;
46 return num_lt( $self, $test ) if $switch;
49 return 1 if $_ > $test;
56 my ( $self, $test, $switch ) = @_;
58 return num_ge( $self, $test ) if $switch;
61 return 1 if $_ <= $test;
68 my ( $self, $test, $switch ) = @_;
70 return num_gt( $self, $test ) if $switch;
73 return 1 if $_ < $test;
80 my ( $self, $test ) = @_;
83 return 1 if $_ eq $test;
90 my ( $self, $test ) = @_;
93 return 1 if $_ ne $test;
100 my ( $self, $test, $switch ) = @_;
102 return str_le( $self, $test ) if $switch;
105 return 1 if $_ ge $test;
112 my ( $self, $test, $switch ) = @_;
114 return str_lt( $self, $test ) if $switch;
117 return 1 if $_ gt $test;
124 my ( $self, $test, $switch ) = @_;
126 return str_ge( $self, $test ) if $switch;
129 return 1 if $_ le $test;
136 my ( $self, $test, $switch ) = @_;
138 return str_gt( $self, $test ) if $switch;
141 return 1 if $_ lt $test;
148 my ( $self, $test, $switch ) = @_;
151 return 1 if $_ =~ $test;
158 my ( $self, $test, $switch ) = @_;
161 return 1 if $_ !~ $test;