Group
Extension

Matches 1357

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
Mojo-Run ( L/LI/LIKHATSKI/Mojo-Run-0.3.tar.gz, LIKHATSKI, 2014; MetaCPAN )
Mojo-Run/lib/Mojo/Run.pm ( view source; MetaCPAN )
roc;
	$self->log->error("[process $proc->{pid}]: IO ($io) is unsupported"  ) and return unless $io ~~ [qw/stdout stderr stdres/];
	$self->log->error("[process $proc->{pid}]: IO handler ($io) is EMPTY"
'Command can be pure scalar, arrayref or coderef.') and return
		if $cmd_ref ne '' && not $cmd_ref ~~ ['CODE', 'ARRAY'];

	# callbacks...
	$self->error("STDOUT callback defined, but is not code refere
YAPC-Europe-UGR ( J/JM/JMERELO/YAPC-Europe-UGR-0.9.1.tar.gz, JMERELO, 2014; MetaCPAN )
YAPC-Europe-UGR/lib/YAPC/Europe/UGR.pm ( view source; MetaCPAN )
;
our @EXPORT_OK = qw(pick_best_venue);

sub pick_best_venue {
    my $year = shift // 2015;
    given ($year) {
        when ('2015') { # force string comparison
            return "Granada";
       
 keep it. Maybe changing it a bit to "Art as engineering, engineering as art", or much better, Art ~~ Engineering.

=item B<Air tickets in the proposal are dated as "September 2013". Is it a
typo or t
API-Instagram ( G/GA/GABRIEL/API-Instagram-0.013.tar.gz, GABRIEL, 2014; MetaCPAN )
API-Instagram/lib/API/Instagram/User.pm ( view source; MetaCPAN )
w block unblock approve ignore/;

	use experimental 'smartmatch';
	if ( $action ) {
		if ( $action ~~ @actions ){
			return $self->_api->_post( $url, { action => $action } )
		}
		carp "Invalid action
App-Module-Template ( T/TS/TSC/App-Module-Template-0.11.tar.gz, TSC, 2014; MetaCPAN )
App-Module-Template/lib/App/Module/Template.pm ( view source; MetaCPAN )
-----------------------------------
sub _validate_module_name {
    my ($module_name) = @_;

    given ( $module_name ) {
        when ( $module_name =~ m/\A[A-Za-z]+\z/msx )
        {
            cro
TPath ( D/DF/DFH/TPath-1.007.tar.gz, DFH, 2014; MetaCPAN )
TPath/lib/TPath/Stringifiable.pm ( view source; MetaCPAN )
 = [ "\t", "\f", "\n", "\r", "\013", "\b" ];
    for my $c ( split //, $string ) {
        if ( $c ~~ $special ) {
            for ($c) {
                when ("\t")   { $c = '\\t' }
                w
Bot-Backbone-Service-OFun ( H/HA/HANENKAMP/Bot-Backbone-Service-OFun-0.142230.tar.gz, HANENKAMP, 2014; MetaCPAN )
Bot-Backbone-Service-OFun/lib/Bot/Backbone/Service/OFun/Karma.pm ( view source; MetaCPAN )
rd from either side of any other alias. Aliases cannot be chained.

If only a single argument is given (again, make sure you quote your phrases), it will report if there are any score aliases to or fr
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
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/Parser-Mini/parser.pl ( view source; MetaCPAN )
";
}

sub token {
    state $empty_line;
    loop {
        if @tokens {
            if @tokens[0] ~~ '#' {
                # skip comment
                @tokens = ();
                next;
         
$line_number++;                
        # print "# $line_number: $line\n";
        @tokens = $line ~~ m:g:perl5 {(\w+|\s+|.+?)};   # \b doesn't work ???
        @tokens = @tokens.map:{ ~$_ };  # force
   }
}

sub optional_space {
    my $word;
    loop {
        $word = token;
        next if $word ~~ m:perl5/^\s/;
        unshift @tokens, $word;
        return;
    }
}

sub sentence {
    print ta
Test-HTTP-AnyEvent-Server ( S/SY/SYP/Test-HTTP-AnyEvent-Server-0.013.tar.gz, SYP, 2014; MetaCPAN )
Test-HTTP-AnyEvent-Server/lib/Test/HTTP/AnyEvent/Server.pm ( view source; MetaCPAN )
elf->uri;
            })
        );
    } else {
        my ($rh, $wh) = portable_pipe;

        given (fork) {
            when (undef) {
                AE::log fatal =>
                    "couldn'
Mail-IMAPQueue ( M/MA/MAHIRO/Mail-IMAPQueue-0.04.tar.gz, MAHIRO, 2014; MetaCPAN )
Mail-IMAPQueue/lib/Mail/IMAPQueue.pm ( view source; MetaCPAN )
p = $self->{client};
    
    unless (blessed($imap)) {
        $@ = "Parameter 'client' must be given (Mail::IMAPClient)";
        return undef;
    }
    
    return $self;
}

=head2 $queue->is_empt
Lingua-POL-Numbers ( P/PE/PETAMEM/Lingua-POL-Numbers-0.135.tar.gz, PETAMEM, 2014; MetaCPAN )
Lingua-POL-Numbers/lib/Lingua/POL/Numbers.pm ( view source; MetaCPAN )
 my $wynik = '';

    $Idziesiatka = Val(Left($Number, 1));
    if ($Idziesiatka == 1) {
        given(Val($Number)) {
            when (10) { $wynik = 'dziesięćdz '; }
            when (11) { $wyni
 '; }
            when (19) { $wynik = 'dziewiętnaście '; }
        }
    }
    else {
        given ($Idziesiatka) {
            when (2) { $wynik = 'dwadzieścia '; }
            when (3) { $wynik
Sys-Run ( T/TE/TEX/Sys-Run-0.16.tar.gz, TEX, 2014; MetaCPAN )
Sys-Run/lib/Sys/Run.pm ( view source; MetaCPAN )
nt
- NoSSHStrictHostKeyChecking
- SSHOpts
- ReturnRV
- Retry

=head2 check_binary

Make sure the given (unqalified) binary exists somewhere in the search path.

=head2 check_remote_binary

Make sure t
EntityModel-Log ( T/TE/TEAM/EntityModel-Log-0.006.tar.gz, TEAM, 2014; MetaCPAN )
EntityModel-Log/lib/EntityModel/Log.pm ( view source; MetaCPAN )
,
	'Info',
	'Warning',
	'Error',
	'Fatal',
);

=head2 _raise_error_on_global_instance

Raise the given (code, message, ...) log event on the L<EntityModel::Log> global instance.

=cut

sub _raise_erro
EntityModel ( T/TE/TEAM/EntityModel-0.102.tar.gz, TEAM, 2013; MetaCPAN )
EntityModel/lib/EntityModel/Storage.pm ( view source; MetaCPAN )
nsaction in progress" unless $self->transaction->count;
	die "Mismatched transaction" unless $tran ~~ $self->transaction->last;
}

=head2 transaction_commit

Commit this transaction to storage - makes
nsaction in progress" unless $self->transaction->count;
	die "Mismatched transaction" unless $tran ~~ $self->transaction->last;
}

=head2 transaction_end

Release the transaction on completion.

=cut
nsaction in progress" unless $self->transaction->count;
	die "Mismatched transaction" unless $tran ~~ $self->transaction->last;
	$self->transaction->pop;
	return $self;
}

sub backend_ready { shift->{
EntityModel ( T/TE/TEAM/EntityModel-0.102.tar.gz, TEAM, 2013; MetaCPAN )
EntityModel/lib/EntityModel/Model.pm ( view source; MetaCPAN )
logDebug("Check match: src " . scalar(@srcList) . ", dest " . scalar(@dstList));
	return \@srcList ~~ \@dstList;
}

=head2 read_tables

Virtual method for reading table definitions.

=cut

sub read_ta
 } $e->dependencies;
		my @pendingNames = map { $_->name } @pending;
		my @unsatisfied = grep { $_ ~~ @deps } @pendingNames;
		my @existing = map { $_->name } $self->entity->list;
		# Include current 
y in list of available entries, so that we can allow self-reference
		my @unresolved = grep { !($_ ~~ [@pendingNames, @existing, $e->name]) } @deps;
		if(@unresolved) {
			logError("%s unresolved (pen
Test-Magpie ( S/ST/STEVENL/Test-Magpie-0.11.tar.gz, STEVENL, 2013; MetaCPAN )
Test-Magpie/lib/Test/Magpie/Util.pm ( view source; MetaCPAN )
a ~~ $b;

        foreach (keys %$a) {
            return if !match( $a->{$_}, $b->{$_} );
        }
        return 1;
    }

    # avoid smartmatch doing number matches on strings
    # e.g. '5x' ~~ 
5 is true
    return if looks_like_number($a) xor looks_like_number($b);

    return $a ~~ $b;
}

1;

__END__

=pod

=encoding utf-8

=head1 NAME

Test::Magpie::Util - Internal utility functions for T
Eve ( Z/ZI/ZINIGOR/Eve-0.06.tar.gz, ZINIGOR, 2014; MetaCPAN )
Eve/lib/Eve/HttpResource.pm ( view source; MetaCPAN )
    id => $self->_request->get_cookie(name => 'session_id'));

    if (!($self->_session->get_id() ~~
          $self->_request->get_cookie(name => 'session_id'))) {
        $self->_response->set_cook
Eve ( Z/ZI/ZINIGOR/Eve-0.06.tar.gz, ZINIGOR, 2014; MetaCPAN )
Eve/lib/Eve/DbiStub.pm ( view source; MetaCPAN )
ed $data_hash->{'input_type_list'} and
                        not $data_hash->{'input_type_list'} ~~
                            $self->{'input_type_list'}) {
                        next;
          
Hessian-Translator ( H/HE/HEYTRAV/Hessian-Translator-1.06.tar.gz, HEYTRAV, 2014; MetaCPAN )
Hessian-Translator/lib/Hessian/Translator/Envelope.pm ( view source; MetaCPAN )
sub read_packet_chunk {    #{{{
    my ( $self, $first_bit ) = @_;

    my ($packet_string);
    given ($first_bit) {
        when (/[\x70-\x7f]/) {
            my $length = unpack "C*", $first_bit;
 
       = keys %{$hessian_data};
        my $datastructure = $hessian_data->{ $keys[0] };
        given ( $keys[0] ) {
            when (/call/) {
                $hessian_message = $self->write_hessia

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