Group
Extension

Matches 1364

perl ( C/CO/CONTRA/perl-5.43.5.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/pod/perl5140delta.pod ( view source; MetaCPAN )
pty list if the block was exited by C<break>.  Thus you
can now write:

    my $type = do {
     given ($num) {
      break     when undef;
      "integer" when /^[+-]?[0-9]+$/;
      "float"   when /
e operators is used in
an unparenthesised argument:

  < > <= >= lt gt le ge
  == != <=> eq ne cmp ~~
  &
  | ^
  &&
  || //
  .. ...
  ?:
  = += -= *= etc.
  , =>

=head3 Smart-matching against array
 resulted in a successful match:

    my @a = qw(a y0 z);
    my @b = qw(a x0 z);
    @a[0 .. $#b] ~~ @b;

This odd behaviour has now been fixed [perl #77468].

=head3 Negation treats strings differen
perl ( C/CO/CONTRA/perl-5.43.5.tar.gz, DOM, 2025; MetaCPAN )
perl/lib/Pod/Functions.pm ( view source; MetaCPAN )
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    $typedesc 
~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    $typedesc 
 ~~  ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
perl ( C/CO/CONTRA/perl-5.43.5.tar.gz, DOM, 2025; MetaCPAN )
perl/dist/Storable/t/freeze.t ( view source; MetaCPAN )
#$a = 2; $a->[1] = undef;
        $b = thaw freeze $a;
        @a = map { ~~ exists $a->[$_] } 0 .. $#$a;
        @b = map { ~~ exists $b->[$_] } 0 .. $#$b;
        ok 20, "@a" eq "@b";
    ';
}
else 
perl ( C/CO/CONTRA/perl-5.43.5.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/install_lib.pl ( view source; MetaCPAN )
| $Is_NetWare);

    if ($p1 ne $p2) {
	my($dev1, $ino1, $dev2, $ino2);
	($dev1, $ino1) = stat($p1);
	($dev2, $ino2) = stat($p2);
	($dev1 ~~ $dev2 && $ino1 ~~ $ino2);
    }
    else {
	1;
    }
}

1;
perl ( C/CO/CONTRA/perl-5.43.5.tar.gz, DROLSKY, 2025; MetaCPAN )
perl/lib/overload.pm ( view source; MetaCPAN )
            => "-X",
    dereferencing       => '${} @{} %{} &{} *{}',
    matching            => '~~',
    special             => 'nomethod fallback =',
);

my %ops_seen;
for $category (keys %ops) {
s	  => '<>',
 filetest         => '-X',
 dereferencing	  => '${} @{} %{} &{} *{}',
 matching	  => '~~',
 special	  => 'nomethod fallback ='

Most of the overloadable operators map one-to-one to these 
oad was introduced in Perl 5.12.

=item * I<Matching>

The key C<"~~"> allows you to override the smart matching logic used by
the C<~~> operator and the switch construct (C<given>/C<when>).  See
L<pe
Sim-OPT ( G/GL/GLBRUNE/Sim-OPT-0.751.tar.gz, GLBRUNE, 2025; MetaCPAN )
Sim-OPT/lib/Sim/OPT/Takechance.pm ( view source; MetaCPAN )
 ) # THIS STRIPS AWAY THE PARAMETERS THAT ARE NOT CONTAINED IN @pars_tocheck.
		{
			unless ( $elt ~~ @{ $pars_tocheck[$countcase] } )
			{
				delete ${ $tempvarnumbers[$countcase] }{$elt};
			}
		}
 eq "")
								{
									my $elmo = $elem;
									$elmo =~ s/(.*)-(.*)/$1/;
									if ($elmo ~~ @integralslice)
									{
										;
									}
									else
									{
										if ($countblk
perl ( C/CO/CONTRA/perl-5.43.5.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
Markdown-Parser ( J/JD/JDEGUEST/Markdown-Parser-v0.5.1.tar.gz, JDEGUEST, 2025; MetaCPAN )
Markdown-Parser/lib/Markdown/Parser/StrikeThrough.pm ( view source; MetaCPAN )
ft( @_ );
    my $str = $self->children->map(sub{ $_->as_markdown })->join( '' );
    return( "~~${str}~~" );
}

sub as_pod
{
    my $self = shift( @_ );
    my $str = $self->children->map(sub{ $_->as
Markdown::Parser> and inherits from L<Markdown::Parser::Element>

For example:

    ~~This whole sentence is wrong~~

=head1 METHODS

=head2 as_markdown

Returns a string representation of the strike-
Switch-Back ( D/DC/DCONWAY/Switch-Back-0.000005.tar.gz, DCONWAY, 2025; MetaCPAN )
Switch-Back/lib/Switch/Back.pm ( view source; MetaCPAN )
te @pure_statements;
    @pure_statements = ();
    state $VALIDATE_PURE_GIVEN = qr{
        \A  given (?<GIVEN>  (?<ws_post_kw>   $OWS    )  \(
                             (?<ws_pre_expr>  $OWS    )
    return !defined $left;
    }

    # 2. Objects on the RHS can't be handled (at all, because no ~~ overloading available)...
    croak 'Smart matching an object breaks encapsulation'
        if $ri
removed in this version of Perl

    use Switch::Back;   # But this module brings them back

    given ($some_value) {

        when (1)   { say 1; }

        when ('a') { say 'a'; continue; }

      
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
Crop ( O/OC/OCTAVIANI/Crop-0.1.27.tar.gz, OCTAVIANI, 2025; MetaCPAN )
Crop/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
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>
perl ( C/CO/CONTRA/perl-5.43.5.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 ( C/CO/CONTRA/perl-5.43.5.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);'
		   
Aion ( D/DA/DART/Aion-1.2.tar.gz, DART, 2025; MetaCPAN )
Aion/lib/Aion/Meta/Subroutine.pm ( view source; MetaCPAN )
Used to declare the required function in interfaces and abstract classes.
In this case, C<referent ~~ Undef>.

It also creates a wrapper function that checks the signature.

=head1 SUBROUTINES

=head2
perl ( C/CO/CONTRA/perl-5.43.5.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
perl ( C/CO/CONTRA/perl-5.43.5.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-Critic-PolicyBundle-SNEZ ( S/SN/SNEZ/Perl-Critic-PolicyBundle-SNEZ-0.03.tar.gz, SNEZ, 2025; MetaCPAN )
Perl-Critic-PolicyBundle-SNEZ/lib/Perl/Critic/Policy/CodeLayout/RequireSpaceAroundBinaryOperators.pm ( view source; MetaCPAN )
Y_OPERATORS => qw(
  **   +    -
  =~   !~   *    /    %    x
  <<   >>   lt   gt   le   ge   cmp  ~~
  ==   !=   <=>  .    ..   ...
  &    |    ^    &&   ||   //
  **=  +=   -=   .=   *=   /=
  %=   

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