my @mro = @{ mro::get_linear_isa( ref $obj ) };
for my $class ( @mro ) {
my $name = "$class\::(~~";
my $overload = do {
no strict 'refs';
exists( &$name ) ? \&$name : undef;
};
return
ide being passed as an
argument.
=item *
If the right hand side is an object which overloads C<< ~~ >>, then this
will be used.
=item *
If the right hand side is an arrayref, then the operator rec
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;
al.retop)
# define SU_RETOP_LOOP(C) ((C)->blk_loop.my_op->op_lastop->op_next)
# define SU_RETOP_GIVEN(C) ((C)->blk_givwhen.leave_op->op_next)
#else
# define SU_RETOP_SUB(C) ((C)->blk_oldretsp > 0 ?
XSH_HAS_PERL(5, 10, 0)
case CXt_GIVEN:
cxt_given:
type = OP_LEAVEGIVEN;
next = SU_RETOP_GIVEN(cx);
break;
case CXt_WHEN:
cxt_when:
#if XSH_HAS_PERL(5, 15, 1)
type = OP_LEAVEWHEN;
#e
est);
subtype "XML::EPP::transferOpType"
=> as "PRANG::XMLSchema::token",
=> where { $_ ~~ @tot };
=head2 CONVERT C<complexType> TO CLASSES
This really belongs earlier in this document, i
1);
}
else {
throw $self "store_row - no key_value given (old usage??)";
}
# Trapping for errors.
#
# This seems to be only needed for My
rop the protocol if given (defaults to https later). If that leaves nothing, the check below
# will set the servers to LE standard ones.
$self->{server}=~s~^\w+://~~;
} elsif ($sel
hod};
my $passthru = $arg->{passthru};
use Data::Dumper;
return sub {
return if $_[2] ~~ $passthru;
return if substr($_[2], 0, 1) eq '(';
${ $_[1] } = $_[2];
$_[2] = $metame
with I<$!>.
=item ($method): (apt-config): timeouted
While processing a fair 120sec timeout is given
(it's reset after each I<$line>).
I<@$config_source> hanged for that time.
=item ($method): (apt
the Markdown content after
#pod it has been rendered by the kit's Renderer, if any.
#pod
#pod If given (and true), the C<munge_signature> option will perform some basic
#pod munging of a sigdash-prefi
s. The specific munging performed is not guaranteed to remain exactly
#pod stable.
#pod
#pod If given (and true), the C<render_wrapper> option will cause the kit entry to
#pod be passed through the r
template
#pod parameter called C<wrapped_content>, and should be included that way.
#pod
#pod If given (and true), the C<encode_entities> option will cause HTML in the
#pod source text to be entity en
d in the
#pod example will be found at the end of the output, sorted by the fallback sub if
#pod given (see below).
#pod
#pod Alternately, the example may be a reference to a hash. Values are used to
t not found in the
example will be found at the end of the output, sorted by the fallback sub if
given (see below).
Alternately, the example may be a reference to a hash. Values are used to
provide
porting package. It will
export it under the name C<$default_name>, unless an alternate name is given
(as shown above). The glob that is installed is specified by the
C<$globref_locator>, which can
+)
| # [, ] and ~ should be escaped as ~[, ~] and ~~
(?<esc>[\[\]~])
!
if ($+{es
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;
the
response headers as a L<Mojo::Headers> object.
Expects a valid URL. In case no scheme is given (e.g., C<//gmail.com>),
the method will first try to fetch the resource with C<https> and
on fa
ne> tells it to
"reject!", and I<counte> bids it "count!". In each case, an instruction
is being given (and in a void context too, so no backchat is expected).
Handling scalar and list contexts is a
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
-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 =
~~ <1..3> | <4..6> ~~ <1..3>->zip(<4..6>)
<1..3> Z. <4..6> ~~ <1..3> |'.'| <4..6> ~~ <1..3>->zip('.' => <4..6>)
<1..3> X <4..6> ~~ <1..3> x <4..6> ~~ <1.
<4..6> ~~ <1..3> x'.'x <4..6> ~~ <1..3>->cross('.' => <4..6>)
<1..3> <<+>> <4..6> ~~ <1..3> <<'+'>> <4..6> ~~ <1..3>->hyper('<<+>>', <4..6>)
[+] 1..10 ~~ <[+] 1..10
> ~~ reduce {$_[0] + $_[1]} 1 .. 10
[+]->(1..10) ~~ <[+]>->(1..10) ~~ same as above
[\+] 1..10 ~~ <[..+] 1..10> ~~ scan {$_[0] + $_[1]} 1 ..
t-to-right order with
respect to the starting positions.
$str = "abracadabra";
if $str ~~ m:overlap/ a (.*) a / {
@substrings = slice @(); # bracadabr cadabr dabr br
}
=i
str = "abracadabra";
if $str ~~ m:exhaustive/ a (.*?) a / {
say "@()"; # br brac bracad bracadabr c cad cadabr d dabr br
}
Note that the C<~~> above can return as soon as the f
ke the old
C<\A> and C<\z>. (The C</m> modifier is gone.) On the right side of
an embedded C<~~> or C<!~~> operator they always match the start/end
of the indicated submatch because that submatch is
(SvOBJECT(r)) { /* a ~~ $object */
/* XXX: what I should do? */
return tx_sv_eq_nomg(aTHX_ a, b);
}
else if(SvTYPE(r) == SVt_PVAV) { /* a ~~ [ ... ] */
}
}
return FALSE;
}
else if(SvTYPE(r) == SVt_PVHV) { /* a ~~ { ... } */
if(SvOK(a)) {
HV* const hv = (HV*)r;
return