+)
| # [, ] and ~ should be escaped as ~[, ~] and ~~
(?<esc>[\[\]~])
!
if ($+{es
. operadores unarios nombrados
no asoc. < > <= >= lt gt le ge
no asoc. == != <=> eq ne cmp ~~
izquierda &
izquierda | ^
izquierda &&
izquierda || //
no asoc. .. ...
de
la
derecha. X<cmp>
El binario C<"~~"> hace una coincidencia inteligente entre sus argumentos. La
Coincidencia inteligente se describe en la sección siguiente. X<~~>
C<"lt">, C<"le">, C<"ge">, C<"g
or primera vez en Perl 5.10.1 (la versión 5.10.0 se comportaba de
manera diferente), el binario C<~~> hace una "coincidencia inteligente" entre
sus argumentos. Casi siempre se usa implícitamente en
-v' || $ARGV[1] eq '--verbose') {
$verbose = 1;
}
# remote is origin unless two arguments are given (not counting the flag)
if ($numArgs == 3 + $verbose) {
$name = $ARGV[1 + $verbose];
$newurl =
t}}, $weight)
unless $weight ~~ @{$fonts{family}->{$family}->{weight}};
push(@{$fonts{family}->{$family}->{width}}, $avg_width)
unless $avg_width ~~ @{$fonts{family}->{$family}->{wid
_dpi}}, $v_dpi)
unless $v_dpi ~~ @{$fonts{family}->{$family}->{vert_dpi}};
push(@{$fonts{family}->{$family}->{horiz_dpi}}, $h_dpi)
unless $h_dpi ~~ @{$fonts{family}->{$family}->{hori
hs}}, $tenths)
unless $tenths ~~ @{$fonts{family}->{$family}->{tenths}};
push(@{$fonts{family}->{$family}->{spacing}}, $spacing)
unless $spacing ~~ @{$fonts{family}->{$family}->{spac
rom resulting list
for (my $i = 0; $i < length(@rgba_points); $i++) {
if (not (@rgba_points[$i] ~~ @non_rgba_rgba_points)) {
push (@return_rgba_points, @rgba_points[$i]);
}
}
return (@retu
}->{width}}) % $self->{imgrepr}->{width} ~~ @indexl
and (@rgbasl[$i]->{@rgbasl[$i]->{index} - $self->{imgrepr}->{width} - 1}) % $self->{imgrepr}->{width} ~~ @indexl
and (@rgbasl[$i]->{@rgbasl[$i
]->{index} - $self->{imgrepr}->{width} + 1}) % $self->{imgrepr}->{width} ~~ @indexl) {
push (@grepped_points, @rgbasl[$i]);
}
}
return (@grepped_points);
}
1;
->{$name} // $alt_hr->{$name} // $default_value;
}
# approximates python's "in" operator, because ~~ is unsane:
sub in {
my $v = shift @_;
return 0 unless (@_ && defined($_[0]));
if (ref(
block for one-liners
-M5; Maori farewell BEGIN block for one-liners
~~ Inchworm scalar
~- Inchworm on a stick high-p
alar / list context
=< >=~ Flaming X-Wing match input, assign captures
~~<> Kite a single line of input
<<m=~m>> m ; Ornate double-blade
boolean list squash
0+!! Key to the truth numeric boolean conversion
~~!! Serpent of truth numeric boolean conversion
||() Abbott and Cost
n==$self->ndims-1);
#say "self: @n";
my $str;
my @rm;
for my $i (0.. $#n) {
unless (/$n[$i]/ ~~ @except){
#say "Selecting $i $n[$i] $idx[$i]";
push @rm,$n[$i];
$str.="$idx[$i]";
}
et+=0;
$ret->sethdr($self->hdr_copy);
#say $ret->info;
for my $i (0.. $#n) {
unless (/$n[$i]/ ~~ @except){
#say "$i $n[$i] ",idx($self,$n[$i]);
dimsize($ret,'channel',1);
#say "$i $n[$i]
Smart Matching';
1;
__DATA__
=encoding utf-8
=head1 Smart matching
Basically, smart matching(C<~~>) look at both his operators and decides what to do with them.
=head3 Table for smart match opera
%x ~~ %y hash keys identical
%x ~~ @y or @x ~~ %y at least one key in %x is in @y
%x ~~ /text/ or /text/ ~~ %y at least one key matches pattern
'text' ~~ %x
@x ~~ @y arrays are the same
@x ~~ /text/ at least one element in @x matches pattern
$name ~~ undef $name is not defined
$name ~~ /text
my @valid_lists = sort($mpd->collection->all_playlists);
for my $list(@lists) {
if($list ~~ @valid_lists) {
next;
}
else {
my @choices = ();
for my $valid(@valid_l
ices;
}
elsif($answer eq 'current') {
return(undef);
}
if($answer ~~ @valid_lists) {
$list = $answer;
}
# Make sure the number selected is in fact
s = @_;
my @lists = $mpd->collection->all_playlists;
map { s/^\s+//m } @lists;
return ($_[0] ~~ @lists) ? 1 : 0;
}
sub escape {
my $str = shift;
$str =~ s/([;<>*|`&\$!#()[\]{}:'" ])/\\$1/g;
return $not;
}
sub arrayElement($array, $element) {
if( $element ~~ @{$array} ) {
return 1;
} else {
return 0;
^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~
$role_reqs
.
format INHERIT_POD =
=head1 NAME
@*
$myclass
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~
$handles
.
format ATTR_NARROW
$handles
^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~~
$handles
.
format ATTRHEAD_POD =
=head1 ATTRIBUTES
.
format ATTR_POD =
=he
fy
CHKIF: for my $if ( $factory->get_interface ) {
my ($dt,$rt) = @$if;
for (@$rt) {
$_ ~~ [ IMP_REPLACE, IMP_TOSENDER ] or next;
$self->{can_modify} =1;
last CHKIF;
}
}
t->{acct}{$key} = $value;
next;
}
# (pre)pass data up to offset
if ( $rtype ~~ [ IMP_PASS, IMP_PREPASS ]) {
my ($dir,$offset) = @$rv;
$DEBUG && $request->xdebug("got $
ew data
$ib0->[3], # callback
$ib0->[4], # cbargs
];
next;
}
if ( $rtype ~~ [ IMP_PAUSE, IMP_CONTINUE ] ) {
my $dir = shift(@$rv);
my $relay = $self->{request}{conn
unless $list ~~ @wmods;
} elsif ($type eq 'p') {
die "Unknown phraselist '$list'\n" unless $list ~~ @pmods;
} else {
if ($list ~~ @wmods) {
$type = 'w';
} elsif ($list ~~ @pmods) {
$type = 'p';
} else {
die "Unknown word-/phraselist '$list'\n";
'p';
if ($type eq 'w') {
if (($ENV{LANG} // "") =~ /^id/ && "ID::KBBI" ~~ @wmods) {
$list = "ID::KBBI";
} else {
if
re-generation of the thumbnail images even if they already
exist. If false (the default) then a given (thumbnail) image file will
only be created if it doesn't already exist.
=item B<image_match>
R
# If you have more than one client id simutaneously, you can distinguish them by this field.
given( $msg->{'@type'} ) {
when('updateAuthorizationState') {
...
}
...
}
say "recv: $msg";
$msg = decode_json($msg);
given($msg->{'@type'}) {
when('updateAuthorizationState') {
given( $msg->{authorization_state}{'@type'} ) {
when
}
return sort { $a->date cmp $b->date } @releases;
}
sub releases_to_import ($self) {
given ( $self->thing_to_import ) {
when ( qr/^(?:https?|file|ftp)::/ ) {
return $se
item NP = Non-Gas & Oil Industries
=item Non-CAPN Merchants
=item GO = Gas & Oil Industry
=item ~~ = Non-Gas & Oil Industries
=back
Note: Tildes (~) represent character spaces.
=head2 IND_REF_NU
les.
--incglob '/unicore/**.pl'
=item C<--add> F<file> | C<--add> "F<file> alias"
Adds the given (perl) file into the bundle (and optionally call it
"alias"). The F<file> is either an absolute p
rees
equ2hor( $h, $delta, $theta);
}
sub convert_lambda {
my ($target, $dec) = @_;
given ($target) {
sub { dms_or_dec_str( $_[0], decimal => $dec ) }
when 1;
ormat = sub {
dms_or_dec_str($_[0], decimal => $dec, places => 2, sign => 1)
};
given( $target ) {
sub { $format->( $_[1] ) }
when [1, 2];
sub {
my ($target, $format, $theme) = @_;
my $fmt = uc $format;
my $tmpl;
my @titles;
given ($target) {
when (1) {
$tmpl = $fmt eq 'S' ? '%-7s %-11s %-10s %-10s %-1