Group
Extension

Matches 1354

Crop-Config ( O/OC/OCTAVIANI/Crop-Config-0.1.25.tar.gz, OCTAVIANI, 2025; MetaCPAN )
Crop-Config/lib/Crop/Object/Attr.pm ( view source; MetaCPAN )
y ($self, $type) = @_;
	
	given ($type) {
		when (STORED) { $self->{type} ~~ ATTR_STORED }
		when (CACHED) { $self->{type} ~~ ATTR_CACHED }
		when (KEY)    { $self->{type} ~~ ATTR_KEY    }
		when (ANY
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/pod/perlcheat.pod ( view source; MetaCPAN )
se { }
  **                     unless  (e) { } elsif (e) { } else { }
  ! ~ \ u+ u-            given   (e) { when (e) {} default {} }
  =~ !~
  * / % x                 NUMBERS vs STRINGS  FALSE vs TR
           == !=      eq ne
  < > <= >= lt gt le ge   < > <= >=  lt gt le ge
  == != <=> eq ne cmp ~~  <=>        cmp
  &
  | ^             REGEX MODIFIERS       REGEX METACHARS
  &&              /i c
Multi-Dispatch ( D/DC/DCONWAY/Multi-Dispatch-0.000006.tar.gz, DCONWAY, 2025; MetaCPAN )
Multi-Dispatch/lib/Multi/Dispatch.pm ( view source; MetaCPAN )
erhaps you wanted: "
                                                    . ":where({ $param->{var} ~~ $match{where_expr} })"
                                                )
                    : $ma

    multi factorial ($n == 0)    { 1 }

    multi alert ($msg eq "")     {}
    multi alert ($msg ~~ undef)  {}

    multimethod add_client ($data, $ID =~ /X\w{4}\d{6}/) {
        die "Can't add an X
Geoffrey ( M/MZ/MZIESCHA/Geoffrey-0.000206.tar.gz, MZIESCHA, 2025; MetaCPAN )
Geoffrey/lib/Geoffrey/Changeset.pm ( view source; MetaCPAN )
 {
    return $_[0]->{postfix} // q~~ if !defined $_[1];
    $_[0]->{postfix} = $_[1];
    return $_[0]->{postfix};
}

sub prefix {
    return $_[0]->{prefix} // q~~ if !defined $_[1];
    $_[0]->{pre
fix} = $_[1];
    return $_[0]->{prefix};
}

sub template {
    return $_[0]->{template} // q~~ if !defined $_[1];
    $_[0]->{template} = $_[1];
    return $_[0]->{template};
}

sub handle_entry {
  
DB-Object ( J/JD/JDEGUEST/DB-Object-v1.8.1.tar.gz, JDEGUEST, 2025; MetaCPAN )
DB-Object/lib/DB/Object/Fields/Field.pm ( view source; MetaCPAN )

        'eq'    => sub{ &_op_overload( @_, 'IS' ) },
        # Full Text Search operator
        '~~'    => sub{ &_op_overload( @_, '@@' ) },
        fallback => 1,
    );
    use Wanted;
    our $VE
are overloaded:

    +, -, *, /, %, <, <=, >, >=, !=, <<, >>, lt, gt, le, ge, ne, &, |, ^, ==, eq, ~~

Thus a field named "dummy" could be used like:

    $f + 10

which would become:

    dummy + 10
ceholder in:

    $f == "'JPY'"

Simply provide:

    $f == '?'

You can use the search operator C<~~> for SQL Full Text Search and it would be converted into C<@@>:

Let's imagine a table C<articles>
Test-Simpler ( D/DC/DCONWAY/Test-Simpler-0.000008.tar.gz, DCONWAY, 2025; MetaCPAN )
Test-Simpler/lib/Test/Simpler.pm ( view source; MetaCPAN )
         eq | ne | lt | le | gt | ge
          | == | != | <  | <= | >  | >=
          | =~ | !~ | ~~
          ) \Z }x;

    my $expected_code = $test_code;
    my ($got_code, $comparator);
    for m
ed[0];
    ok  $result eq $expected[0];
    ok  $result == $expected->[0]->{a}[0];
    ok  $result ~~ $expected[0];
    ok  $result !~ $expected[0];
    ok  $result >  twice($expected{'half'});


=hea
$result                --> 1
    #       $expected->[0]->{a}[0] --> undef
    #
    ok 4 - $result ~~ $expected[0]
    not ok 5 - $result !~ $expected[0]
    #   Failed test at demo/ts_ok-er.pl line 1
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/overload.h ( view source; MetaCPAN )
  concat_amg,		/* 0x3f .        */
    concat_ass_amg,	/* 0x40 .=       */
    smart_amg,		/* 0x41 ~~       */
    ftest_amg,		/* 0x42 -X       */
    regexp_amg,		/* 0x43 qr       */
    max_amg_code
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DOM, 2025; MetaCPAN )
perl/dist/B-Deparse/t/deparse.t ( view source; MetaCPAN )
emented on this Perl version"
# 52 implicit smartmatch in given/when
given ('foo') {
    when ('bar') { continue; }
    when ($_ ~~ 'quux') { continue; }
    default { 0; }
}
####
# 53 conditions in e
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/pod/perldiag.pod ( view source; MetaCPAN )
ve caught it
earlier.

=item Repeated format line will never terminate (~~ and @# incompatible)

(F) Your format contains the ~~ repeat-until-blank sequence and a
numeric field that will never go blan
.

=item Smart matching a non-overloaded object breaks encapsulation

(F) You should not use the C<~~> operator on an object that does not
overload it: Perl refuses to use the object's underlying stru
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/lib/overload.t ( view source; MetaCPAN )
                                 [ 1, 2, 0 ], 0 ];

	$e = '"abc" ~~ (%s)';
	$subs{'~~'} = $e;
	push @tests, [ "abc", $e, '(~~)', '(NM:~~)', [ 1, 1, 0 ], 0 ];

	$subs{'-X'} = 'do { my $f = (%s);'
		   
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/pod/perl5143delta.pod ( view source; MetaCPAN )
nc may be used together.

=item *

The smartmatch operator (C<~~>) was changed so that the right-hand side
takes precedence during C<Any ~~ Object> operations.

=item *

A bug has been fixed in the ta
Markdown-Parser ( J/JD/JDEGUEST/Markdown-Parser-v0.5.1.tar.gz, JDEGUEST, 2025; MetaCPAN )
Markdown-Parser/lib/Markdown/Parser/Insertion.pm ( view source; MetaCPAN )
er> and inherits from L<Markdown::Parser::Element>

For example:

    Tickets for the event are ~~€5~~ ++€10++

Which would become:

    Tickets for the event are <del>€5</del> <ins>€10</ins>
Travel-Status-DE-VRR ( D/DE/DERF/Travel-Status-DE-VRR-3.17.tar.gz, DERF, 2025; MetaCPAN )
Travel-Status-DE-VRR/lib/Travel/Status/DE/EFA/Result.pm ( view source; MetaCPAN )
 shift(@via_main);

			# FIXME cannot smartmatch $stop since it became an object
			#			if ( $stop ~~ \@via_show or $stop == $last_stop ) {
			#				next;
			#			}
			push( @via_show, $stop );
		}
	}

Aion ( D/DA/DART/Aion-0.4.tar.gz, DART, 2025; MetaCPAN )
Aion/lib/Aion.pm ( view source; MetaCPAN )
meta = $Aion::META{$pkg};
    my $extends = $meta->{extends} // return "";

    return 1 if $class ~~ $extends;
    for my $extender (@$extends) {
        return 1 if $extender->isa($class);
    }

  
elf;
	my $meta = $Aion::META{$pkg};
	my $does = $meta->{with} // return "";

    return 1 if $role ~~ $does;
    for my $doeser (@$does) {
        return 1 if $doeser->can("does") && $doeser->does($ro
Locale-CLDR ( J/JG/JGNI/Locale-CLDR-v0.46.0.tar.gz, JGNI, 2025; MetaCPAN )
Locale-CLDR/lib/Locale/CLDR.pm ( view source; MetaCPAN )
 /^ ( (?: (?: ~~ )*+ ~ \[ | [^\[] )++ ) /x;
        $raw //= '';
		if (length $raw) {
			$text =~ s/^ ( (?: (?: ~~ )*+ ~ \[ | [^\[] )++ ) //gx;
			# Fix up escapes
			$raw =~ s/(?:~~)*+\K~\[/[/g;

			$raw =~ s/(?:~~)*+\K~,/,/g;
			$raw =~ s/~~/~/g;
			
			# Escape stuff for perl
			$raw =~ s/\\/\\\\/g;
			$raw =~ s/'/\\'/g;
			
			$sub .= ", '$raw'";
		}
		
		last unless length $tex

		$method =~ s/ \[ \s* (.*?) \s* \] /$1/x;
		
		# sort out ~, and ~~
		$method =~ s/(?:~~)*+\K~,/\x{00}/g;
		$method =~ s/~~/~/g;
		($method, my @params) = split /,/, $method;
		
		# if $is_p
Smart-Match ( L/LE/LEONT/Smart-Match-0.008.tar.gz, LEONT, 2015; MetaCPAN )
Smart-Match/lib/Smart/Match.pm ( view source; MetaCPAN )
 @_;
	return match { return $_ ~~ $match for $sub->() };
}

sub any {
	my @possibilities = @_;
	return match {
		for my $candidate (@possibilities) {
			return 1 if $_ ~~ $candidate;
		}
		return;
	};
rn match { scalar hash and [ sort keys %{$_} ] ~~ [ sort keys %{$hash} ] };
}

sub value {
	my $value = shift;
	return $value if blessed($value);
	given (ref $value) {
		when ('') {
			return $value;
 NAME

Smart::Match - Smart matching utilities

=head1 VERSION

version 0.008

=head1 SYNOPSIS

 given ($foo) {
     say "We've got a positive number" when positive;
     say "We've got an array" when
Crop-Config ( O/OC/OCTAVIANI/Crop-Config-0.1.25.tar.gz, OCTAVIANI, 2025; MetaCPAN )
Crop-Config/lib/Crop/Debug.pm ( view source; MetaCPAN )
output items; if item is a reference, will print dump
=cut
sub debug {
	my $layer = $_[0] && $_[0] ~~ @Layer_const ? shift : DefaultLayer;

	# drop the layer prefix to print in a config-fasion manner
tput OFF
=cut
sub _verbose {
	my $layer = shift;

	my $conf = Crop->C->{debug};
	return 1 unless $conf->{output} eq 'On';
	
	return unless exists $conf->{layer};
	
	$layer ~~ @{$conf->{layer}};
}

1;
Crop ( O/OC/OCTAVIANI/Crop-0.1.27.tar.gz, OCTAVIANI, 2025; MetaCPAN )
Crop/lib/Crop/Debug.pm ( view source; MetaCPAN )
output items; if item is a reference, will print dump
=cut
sub debug {
	my $layer = $_[0] && $_[0] ~~ @Layer_const ? shift : DefaultLayer;

	# drop the layer prefix to print in a config-fasion manner
tput OFF
=cut
sub _verbose {
	my $layer = shift;

	my $conf = Crop->C->{debug};
	return 1 unless $conf->{output} eq 'On';
	
	return unless exists $conf->{layer};
	
	$layer ~~ @{$conf->{layer}};
}

1;
perl ( E/EH/EHERMAN/perl-5.43.4.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/pod/perlhacktips.pod ( view source; MetaCPAN )
NV{PERL_MEM_LOG} =~ /t/		include timestamp in Log
    $ENV{PERL_MEM_LOG} =~ /^(\d+)/	write to FD given (default is 2)

Memory logging is somewhat similar to C<-Dm> but is independent of
C<-DDEBUGGING>
MQUL ( I/ID/IDOPEREL/MQUL-3.000001.tar.gz, IDOPEREL, 2025; MetaCPAN )
MQUL/lib/MQUL.pm ( view source; MetaCPAN )
ry hash-ref, and returns
true if the document matches the query, false otherwise. If no query
is given (or an empty hash-ref is given), true will be returned (every
document will match an empty query 

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