_mono(visual, colormap);
OUTPUT:
RETVAL
#OUTPUT: integer
#DESC: Get the pixel value for the given (red, green, blue) tuple.
void
get_pixel(colorc, red, green, blue)
Gtk::Gdk::ColorContext colorc
tch->{set_icon}->('active') if $sig ~~ 'USR1';
return 1;
}
sub _sig_usr2_handler {
my ($sig) = @_;
$this->dispatch->{set_icon}->('inactive') if $sig ~~ 'USR2';
return 1;
}
sub BUILD
= @_;
Gtk2->main;
}
sub click {
my ($self, $gtk_evnt_box, $gtk_evnt_button) = @_;
given ($gtk_evnt_button->button){
when (1){ # left click
$self->menu;
}
my ($routes) = qx[/sbin/ip r]; # first line -> default route
return 1 if $routes ~~ /default\svia\s\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3}\sdev\s$tunnel/;
Time::HiRes::usleep 100
} = undef;
$self->{sort} = undef;
$self->{records} = [];
return $self;
}
# determine if the given (raw) record is a Doc header record and fill in the
# record with appropriate fields if it is.
su
argument is given, then it is
treated as an option name, and the description for that option is given (a la
longhelp).
END
default => 0,
linkage => sub { $_[0]->dump_help(undef, $_[2])
my ($self, $struct, $type_map, $key) = @_;
#attempt reading common data structures
given (ref($struct)) {
when ('ARRAY') {
return [ map {
$self->_yaa
#attempt custom type mapping
if ($target) {
given (ref($target)) {
when ('CODE') {
return $target->($st
r site
regarding the number of comments detected as C<ok> or C<spam>.
If no C<site> attribute is given (whether as a parameter or when
registering the plugin), this will return nothing.
For a non-blo
"stringify"
;
# Overload smart-match only if we're using 5.10
use if ($] >= 5.010), overload => '~~' => "matches";
our $VERSION = '2.13';
my $PACKAGE = __PACKAGE__; # Useful to have a scalar for
en') ) { ... }
if ( $e ~~ 'open' ) { ... }
C<matches> is used to determine whether a
given exception matches a particular role. On Perl 5.10,
using smart-match (C<~~>) with an C<autodie::except
$env) = @_;
my $req = Plack::Request->new($env);
$req->query_parameters->get($self->key) ~~ $self->password;
}
sub unauthorized {
my $self = shift;
my $body = 'Authorization requir
($opt->{to_dsn}) or die "Can't parse DBI DSN '$opt->{from_dsn}'";
my $module;
given (lc($driver)) {
when ('sqlite') { $module='DBICx::Backend::Move::SQLite' };
->isa('PPI::Token::Word') # the tokens
and $_[1]->literal ~~ [ 'map', 'grep', 'sort' ] # 'map' and 'sort' ('grep' doesn't hurt here and you could
I::Token::Word') # you could watch out for more
and $_[1]->literal ~~ [ 'map', 'sort' ] # 'grep', 'uniq', ...
}
)
} or return;
$self->
(my $main_module = $distro) =~ s/-/::/g;
$main_module = $modules[0] unless ($main_module ~~ @dmods);
# remove any obvious split potentials
if ($self->removal_leve
get_report_failures
{
my ($self, $report) = @_;
return $report->get_cached_tapdom ~~ dpath '//tap//lines//is_ok[value eq 0]/..';
}
sub index :Path :Args(1)
{
my ( $self, $c,
node_name,
$os->name(long => 1, edition => 1),
~~localtime($os->build),
);
$uname .= " [Sys::Info]";
return
w(reftype);
sub new {
my $class = shift;
my $name = shift || 'hash';
if ('HASH' ~~ reftype($name)) {
my $args = $name;
$name = delete $name->{type};
return $
$lookback tests did not have the same success state
return 0 if not $this_success ~~ $success;
}
my $testrun_success = get_testrun_success($testrun->{id});
re
condition
#
# =cut
#
# sub matches
# {
# my ($self, $condition, $event) = @_;
# given($event->type){
# when ('testrun_finished') {
# $testrun
return $success;
# }
#
sub matches
{
my ($self, $condition, $event) = @_;
given($event->type){
when ('testrun_finished') {
$testrun
te;
my $keep_alive_timeout_date = $self->state_details->keep_alive_timeout_date;
given ($self->state_details->current_state){
when(['invalid', 'finished', 'started']){
f ( $installer_timeout_date <= $now) {
my $msg = 'timeout hit ';
given ($self->state_details->current_state){
when ('started') { $msg .=
or => 1,
msg => "Timeout in PRC $prc_number "};
given($self->state_details->prc_state($prc_number)){
when ('boot'){
ers from patsubst
# in that it will perform correctly when alternate names for directories are
# given (as long as they precede the percent sign). For example,
#
# $(filesubst ./src/%.c, %.o, $(wild
differs from patsubst
in that it will perform correctly when alternate names for directories are
given (as long as they precede the percent sign). For example,
$(filesubst ./src/%.c, %.o, $(wild
ers from patsubst
# in that it will perform correctly when alternate names for directories are
# given (as long as they precede the percent sign). For example,
#
# $(filesubst ./src/%.c, %.o, $(wild
?$module\b/, \@args) );
unless (defined $success) {
require $module unless ($module ~~ @NON_INSTADIE); # death by suicide (which prints the proper error msg)
push @failed, $mo
:[A-Z]+\:(?!\:))?$module\b/, \@args) );
require $module unless (defined $success || $module !~~ @NON_INSTADIE); # death by suicide (which prints the proper error msg)
}
}
sub load_pragma {