[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
0xampp
/
perl
/
vendor
/
lib
/
Syntax
/
Keyword
/
Junction
/
[
Home
]
File: Base.pm
package Syntax::Keyword::Junction::Base; use strict; use warnings; our $VERSION = '0.003008'; # VERSION use overload( '==' => "num_eq", '!=' => "num_ne", '>=' => "num_ge", '>' => "num_gt", '<=' => "num_le", '<' => "num_lt", 'eq' => "str_eq", 'ne' => "str_ne", 'ge' => "str_ge", 'gt' => "str_gt", 'le' => "str_le", 'lt' => "str_lt", 'bool' => "bool", '""' => sub {shift}, $] >= 5.010001 ? ('~~' => 'match') : (), ); sub new { bless \@_, shift } sub values { my $self = shift; return wantarray ? @$self : [ @$self ]; } sub map { my ( $self, $code ) = @_; my $class = ref $self; $class->new( map { $code->( $_ ) } $self->values ); } 1; __END__ =pod =encoding UTF-8 =head1 NAME Syntax::Keyword::Junction::Base =head1 VERSION version 0.003008 =head1 AUTHORS =over 4 =item * Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> =item * Carl Franks =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2014 by Arthur Axel "fREW" Schmidt. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut