Group
Extension

Matches 1309

Syntax-Feature-Qwa ( T/TO/TOBYINK/Syntax-Feature-Qwa-0.002.tar.gz, TOBYINK, 2014; MetaCPAN )
Syntax-Feature-Qwa/lib/Syntax/Feature/Qwa.pm ( view source; MetaCPAN )
mart matching

 my $admins = qwk(alice bob carol);
 my $login  = get_current_user();
 
 if ($login ~~ $admins)
 {
   ...
 }

=head2 Arrayrefs for smart matching

The example above also works using arr
ably will be.

 my $admins = qwa(alice bob carol);
 my $login  = get_current_user();
 
 if ($login ~~ $admins)
 {
   ...
 }

=head1 BUGS

Please report any bugs to
L<http://rt.cpan.org/Dist/Display.ht
Smart-Dispatch ( T/TO/TOBYINK/Smart-Dispatch-0.006.tar.gz, TOBYINK, 2014; MetaCPAN )
Smart-Dispatch/lib/Smart/Dispatch/Match.pm ( view source; MetaCPAN )
  => 16,
};

use overload
	'&{}'    => sub { my $x=shift; sub { $x->conduct_dispatch($_[0]) } },
	'~~'     => 'value_matches',
	bool     => sub { 1 },
;

has test => (
	(_TYPES?(isa=>Any()):()),
	is  
f, $value) = @_;
	local $_ = $value;
	no warnings; # stupid useless warnings below
	return ($value ~~ $self->test);
}

sub conduct_dispatch
{
	my ($self, $value, @args) = @_;
	local $_ = $value;
	if (


=item * B<< code derefernce >> C<< &{} >> - C<conduct_dispatch>.

=item * B<< smart match >> C<< ~~ >> - C<value_matches>.

=back

=head1 BUGS

Please report any bugs to
L<http://rt.cpan.org/Dist/Di
HTML-Inject ( T/TO/TOBYINK/HTML-Inject-0.004.tar.gz, TOBYINK, 2014; MetaCPAN )
HTML-Inject/lib/HTML/Inject.pm ( view source; MetaCPAN )
nodeName ~~ [qw(title link meta style)] } },
);

has body_element_test => (
	is         => read_only,
	isa        => must_do( CODE ),
	default    => sub { sub { no warnings; $_[0]->nodeName ~~ [qw(scr
Net-DirectConnect ( P/PR/PRO/Net-DirectConnect-0.14.tar.gz, PRO, 2014; MetaCPAN )
Net-DirectConnect/lib/Net/DirectConnect.pm ( view source; MetaCPAN )
h=$self->{'host'}", 'p=', $self->{'protocol'}, 'm=', $self->{'module'} );
    if ( $self->{'host'} ~~ m{^(?:\w+://)?broadcast} or $self->{'host'} =~ /^(?:255\.|\[?ff)/i ) {
      #if (use_try 'Socket:
atabuf'}, POSIX::BUFSIZ, $self->{'recv_flags'} ) )
    or !length( $self->{'databuf'} )) and $recv ~~ 'recv' )
  {
    #TODO not here
    if (
      $self->active()
      and !$self->{'incoming'}
    
Net-DirectConnect ( P/PR/PRO/Net-DirectConnect-0.14.tar.gz, PRO, 2014; MetaCPAN )
Net-DirectConnect/lib/Net/DirectConnect/adc.pm ( view source; MetaCPAN )
 );
      if ( $code ~~ '20' and $_[0] =~ /^Reconnecting too fast, you have to wait (\d+) seconds before reconnecting./ ) {
        $self->work( $1 + 10 );
      } elsif ( $code ~~ '30'
        and $_
smartmatch ( D/DO/DOY/smartmatch-0.05-TRIAL.tar.gz, DOY, 2012; MetaCPAN )
smartmatch/lib/smartmatch.pm ( view source; MetaCPAN )
;
            use smartmatch '$engine';
            sub { \$_[0] ~~ \$_[1] }
RECURSE
    }
    else {
        $recurse = sub { $_[0] ~~ $_[1] };
    }

    return $recurse;
}


1;

__END__
=pod

=head

=head1 SYNOPSIS

  1 ~~ 2; # false
  {
      use smartmatch sub { 1 };
      1 ~~ 2; # true

      no smartmatch;
      1 ~~ 2; # false

      use smartmatch 'custom';
      1 ~~ 2; # smartmatch::eng
ine::custom::match(1, 2)
  }
  1 ~~ 2; # false

=head1 DESCRIPTION

NOTE: This module is still experimental, and the API may change at any point.
You have been warned!

This module allows you to overr
Date-Calc ( S/ST/STBEY/Date-Calc-6.4.tar.gz, STBEY, 2015; MetaCPAN )
Date-Calc/lib/Date/Calc.pod ( view source; MetaCPAN )
is function returns a string containing the (english) abbreviation
of the ordinal number for the given (cardinal) number "C<$number>".

I.e.,

    0  =>  '0th'    10  =>  '10th'    20  =>  '20th'
    
Articulate ( P/PE/PERRETTDL/Articulate-0.005.tar.gz, PERRETTDL, 2015; MetaCPAN )
Articulate/lib/Articulate/Flow/LocationSwitch.pm ( view source; MetaCPAN )
h of the keys of C<< $self->where >>; if the location
of C<$item> matches location specification given (see
L<Articulate::LocationSpecification>), then instantiates the value of
that key and performs 
WebService-UMLSKS-Similarity ( T/TP/TPEDERSE/WebService-UMLSKS-Similarity-0.23.tar.gz, TPEDERSE, 2011; MetaCPAN )
WebService-UMLSKS-Similarity/lib/WebService/UMLSKS/GetNeighbors.pm ( view source; MetaCPAN )
# If this relation is in directions
			if($rel ~~ %directions){
				unless($rel ~~ @relationattr){
					push(@relationattr,$rel);
				}
				unless($att ~~ @attribute){
					push(@attribute,$att);
				
brel\b/) {
				if(defined $hash_ref->{$att})
				{
					if($hash_ref->{$att} ~~ %directions){
						if($hash_ref->{$att} ~~ @relationattr)
						{
							#msg("relation is :$hash_ref->{$att}", $verbos
		$t_flag       = 1;
				
			}
			if($roflag == 1 && $att =~ /\brelA\b/){
				if($hash_ref->{$att} ~~ @attribute){  
					
					$relflag  = 1;
					#msg(" \n RELA : for term $current_term , $att : $ha
EntityModel ( T/TE/TEAM/EntityModel-0.102.tar.gz, TEAM, 2013; MetaCPAN )
EntityModel/lib/EntityModel/Definition.pm ( view source; MetaCPAN )
 %args = @_;

	my $src = delete $args{source};
	my ($k, $v);
	if(ref $src ~~ 'HASH') {
		($k, $v) = %$src;
	} elsif(ref $src ~~ 'ARRAY') {
		($k, $v) = @$src;
	} else {
		$k = $src;
	}
	logDebug("Tryi
@_;

	my $target = delete $args{target};
	my ($k, $v);
	if(ref $target ~~ 'HASH') {
		($k, $v) = %$target;
	} elsif(ref $target ~~ 'ARRAY') {
		($k, $v) = @$target;
	} else {
		$k = shift;
	}
	logDebu
EntityModel ( T/TE/TEAM/EntityModel-0.102.tar.gz, TEAM, 2013; MetaCPAN )
EntityModel/lib/EntityModel/Query/Condition.pm ( view source; MetaCPAN )
hift;

# Accept hashrefs, but turn them into arrayref by default.
	$data = [ %$data ] if ref $data ~~ 'HASH';

	my @list = @$data;

	my @node;
	my @tree;
	ITEM:
	while(@list) {
		my $k = shift(@list);
 ref $k;
				my $v = shift(@list);
				if(!ref($v)) {
					$item = [ $k, $v ];
				} elsif(ref($v) ~~ [qw{HASH SCALAR}]) {
					$item = [ $k, $v ];
				} else {
					$v = $self->parseCondition($v);
		
 the
RHS.

=cut

sub parseBranch {
	my $self = shift;
	my $item = shift;
	my @query;
	if(ref $item ~~ 'HASH') {
		push @query, '(';
		push @query, $self->parseBranch($item->{left});
		push @query, ' '
EntityModel ( T/TE/TEAM/EntityModel-0.102.tar.gz, TEAM, 2013; MetaCPAN )
EntityModel/lib/EntityModel/Support.pm ( view source; MetaCPAN )
ach my $dep (@deps) {
			next DEP if $dep->name ~~ $entity->name;
			next DEP if grep { $dep->name ~~ $_ } @pendingNames;
			unless(grep { $dep->name ~~ $_->name } @existing) {
				logError("%s unreso
 @deps), $entity->name);
				die "Dependency error";
			}
		}

		my @unsatisfied = grep { $_->name ~~ \@pendingNames } @deps;
		if(@unsatisfied) {
			logInfo("%s has %d unsatisfied deps, postponing: %
Dancer-Plugin-CRUD ( Z/ZU/ZURBORG/Dancer-Plugin-CRUD-1.031.tar.gz, ZURBORG, 2014; MetaCPAN )
Dancer-Plugin-CRUD/lib/Dancer/Plugin/CRUD.pm ( view source; MetaCPAN )
  }

            {
                my @chain = @$chain;

                #unless ($options{action} ~~ [qw[ read update delete patch ]]) {
                #	pop @chain;
                #}
             
Positron ( B/BD/BDEUTSCH/Positron-v0.1.3.tar.gz, BDEUTSCH, 2014; MetaCPAN )
Positron/lib/Positron/Template.pm ( view source; MetaCPAN )
      return $self->_process_loop($node, $environment, $sigil, $quant, $tail);
    } elsif ($sigil ~~ ['?', '!']) {
        return $self->_process_condition($node, $environment, $sigil, $quant, $tail)
l, $quant, $tail);
    } elsif ($sigil ~~ ['.', ',']) {
        return $self->_process_include($node, $environment, $sigil, $quant, $tail);
    } elsif ($sigil ~~ [':', ';']) {
        return $self->_
CGI-Deurl-XS ( A/AT/ATHOMASON/CGI-Deurl-XS-0.08.tar.gz, ATHOMASON, 2014; MetaCPAN )
CGI-Deurl-XS/XS.pm ( view source; MetaCPAN )
f a
parameter appears more than once, the hash value is an array reference
containing each value given (with value order preserved). Obviously, parameter
order is not preserved in the hash.

HTTP esca
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/Synopsis/S12-objects.pod ( view source; MetaCPAN )
ector on
the right.  Our example is roughly equivalent to this closure:

    { $_.does(Str) and $_ ~~ /^[isnt|arent|amnot|aint]$/; }

except that a subtype knows when to call itself.

A subtype is not
ot2b $hamlet;
    $hamlet = 'isnt';   # Okay because 'isnt' ~~ /^[isnt|arent|amnot|aint]$/
    $hamlet = 'amnt';   # Bzzzzzzzt!   'amnt' !~~ /^[isnt|arent|amnot|aint]$/

    my EvenNum $n;
    $n = 2;
:Common :profanity;

    multi sub mesg ($mesg of Str where /<profanity>/ is copy) {
        $mesg ~~ s:g/<profanity>/[expletive deleted]/;
        print $MESG_LOG: $mesg;
    }

    multi sub mesg ($
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/Apocalypse/A12.pod ( view source; MetaCPAN )
um where { $^n % 2 == 0 }

    my Str_not2b $hamlet;
    $hamlet = 'isnt';   # Okay because 'isnt' ~~ /^[isnt|arent|amnot|aint]$/
    $hamlet = 'amnt';   # Bzzzzzzzt!   'amnt' !~ /^[isnt|arent|amnot|a
use Rules::Common :profanity;

    multi sub mesg (Str where /<profanity>/ $mesg is copy) {
	$mesg ~~ s:g/<profanity>/[expletive deleted]/;
	print $MESG_LOG: $mesg;
    }

    multi sub mesg (Str $mes
sures too.  These means the same thing:

    use Dog-{$^ver ~~ 1.2.1 | 1.3.4}-{$^auth ~~ /:i jrandom/};
    use Dog-{$^ver ~~ Any}-{$^auth ~~ /^cpan\:/}

In any event, however you select the module, i
Protocol-CassandraCQL ( P/PE/PEVANS/Protocol-CassandraCQL-0.12.tar.gz, PEVANS, 2014; MetaCPAN )
Protocol-CassandraCQL/lib/Protocol/CassandraCQL/ColumnMeta.pm ( view source; MetaCPAN )
$keyspace, $table, $column ) = $meta->column_name( $idx )

Returns the name of the column at the given (0-based) index; either as three
separate strings, or all joined by ".".

=cut

sub column_name
{
Sidekick-Check ( R/RI/RIVOTTI/Sidekick-Check-0.0.1.tar.gz, RIVOTTI, 2014; MetaCPAN )
Sidekick-Check/lib/Sidekick/Check.pm ( view source; MetaCPAN )
sub {
    my $method = shift;
    my $value  = shift;
    my $name   = shift;
    my @args;

    given ( ref $method ) {
        when ( 'ARRAY' ) {
            ($method, @args) = @{ $method };
       
Bit-Vector ( S/ST/STBEY/Bit-Vector-7.4.tar.gz, STBEY, 2014; MetaCPAN )
Bit-Vector/lib/Bit/Vector/String.pod ( view source; MetaCPAN )
ealized in C, internally); these methods will silently
assume a value of 0 bits if "C<undef>" is given (and may warn
about the "Use of uninitialized value" if warnings are enabled).

=item *

C<$strin
ealized in C, internally); these methods will silently
assume a value of 0 bits if "C<undef>" is given (and may warn
about the "Use of uninitialized value" if warnings are enabled).

The necessary num

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.