if($recurse) {
foreach my $val (@mapped) {
given(reftype $val) {
when('HASH') {
for(ke
Uploader;
extends 'Dist::Release::Action';
our $VERSION = '0.0_5';
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sub check {
my ($self) = @_;
# we have 'github' registered
q{no 'github' remote repository found})
unless 'github' ~~ @remotes;
}
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sub release {
my $self = shift;
unless ( $self->di
strel->vcs->command( push => '--tags', 'github', 'master' );
}
}
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1;
__END__
=head1 NAME
Dist::Release::Action::Github - pushes rep
ref $_ ne 'HASH'
|| ( !exists $_->{$param} )
|| $value ~~ $_->{$param}
} @data;
}
$self->render_json( \@data );
};
app->start;
__DATA__
@
ions of 'tar' (1.21 and up) now print record size
### to STDERR as well if v OR t is given (used to be both). This
### is a 'feature' according to the changelog, so we must no
sses ) {
my $text = "";
my $method = $_ % 10;
my $pattern;
given ( $method ) {
when ( [ 1, 2, 3 ] ) {
while ( length $text < $length
my @wanted;
for <> -> $line {
push @wanted, $line if $line ~~ /\D/;
push @wanted, -$line if some_other_condition($line);
}
print gather {
for <> -> $line {
take $line if $line ~~ /\D/;
take -$line if some_other_condition($line);
}
ent(id [, key1 => value1, key2 => value2, ...])
Gets, and optionally sets, the properties of a given (existing)
bibliographic entry. The optionally updated properties are provides
as a hash. The r
ion means
that the given substring will be deleted and replaced by the mark. The
given (negative) offset means that the substring must be searched
backward and that the last 20
y numbered by the printing/editing applications
and that it should be represented by the given (arbitrary) string; if
'label' is defined, it becomes the default value of 'citation';
ropped. No further handling.
#
if ( $err ) {
given ( $err ) {
# got final SPAM
when( blessed( $_ )
ge => "Could not reinject" } );
}
};
return CF_FINAL_OK unless $@;
given ( $@ ) {
# reinect failure -> save to failure dir and log
when( blessed(
gettimeofday() ] ) );
}
# handle error, if any
given ( $err ) {
# REJECT
when( blessed( $_ ) && $_->i
something different just for the main listing, specify that here. Labels
are used in the order given (blank boxes are ignored) until they run out.
At that point labels are taken from field definitio
Ref' );
=head2 require_sasl_username : CodeRef
Enable throttle module only if sasl_username is given (this happens if the SMTP connection contains AUTH information.. )
=cut
has require_sasl_userna
t (eg RCPT TO)
=cut
sub smtp_response {
my ( $heap, $session, $cmd, $line ) = @_;
given ( $cmd ) {
when ( "EHLO" ) {
$heap->{ client }->put( 250 => 'XFORWARD NAME AD
are already present in the result set
foreach my $n (@new) {
push(@d, $n) unless (grep { $n ~~ $_ } @d);
}
}
}
@d;
}
sub add_edge {
my ($self, $from, $to, $weight, $user_data) = @_;
on_non_method}->( $key, $current, $args, $depth )
if defined $args;
given ( ref $current ) {
when( 'HASH' ) {
return $opts->{key_miss}
the surrounding ones, we just
# need to draw half of the segments.
return unless $segment ~~ [ qw{ e sw s se } ];
my $move = Games::RailRoad::Vector->new_dir($segment);
my $end = $po
tid> [,I<position>]);
This method adds the topic I<tid> to the view. If no position argument
is given (or if it is invalid), the topic is added at the end of the sequence.
The position argument is a
my ( undef, @s ) = @_;
bless \ @s, $_[0];
}
sub FETCH {
my ( $self, $key ) = @_;
given ( $key ) {
when('colour') {
my $name = $self->[NAME];
my $type =
== || and or lt gt cmp eq not
及 等 許 且 或 前 後 較 同 否
=~ !~ x <=> ne ~~ //
=~ !~ x <=> ne ~~ //
<< >> <= >= le ge != ne xor
<< >> <= >= le ge != ne xor
**= += *= &= <<= &&= -= /=
Str $msg) is export {
state $is_fresh;
$is_fresh //= 1;
print "» " if $is_fresh;
if $msg ~~ rx:P5/ $/ {
print "$msg";
$is_fresh = 0;
} else {
say $msg;
$is_fresh++;
}
}
s
nicks) = $event<rest> ~~ m:P5/^. ([^ ]+) :?(.*)$/;
return unless defined $chan;
$chan = normalize $chan;
my @nicks = split(" ", $nicks)\
.map:{ ($_ ~~ m:P5/^[@+%]?(.+)/)[0]
line from the server and process it
readline => {
my $line = readline $hdl;
$line ~~ s:P5/[\015\012]*$//; # Hack to remove all "\r\n"s
debug_recv $line if $debug_raw;
# We
$s ~~ @a # $s Element in @a
123 ~~ @a # ?@a[123]
123 ~~ *@a # 123 Element in @a
@a ~~ /regex/ # irgendein Element
@a ~~ @b # alle Elemente
$s ~~ %h # ?%h{$s}
%h ~~ /r
egex/ # ein passender Hash-Key
%a ~~ %b # gleiche Hashes
any($a,'b',/regex/) ~~ any(@a, 'c', 'd') # cool, nicht?