self->{$dialog}, $boot) : $self->{$dialog};
}
## @method hide_dialog($dialog)
# @brief Hide the given (name of a) dialog.
sub hide_dialog {
my($self, $dialog) = @_;
$self->{$dialog.'_position
et_widget($dialog)->hide();
}
## @method $dialog_visible($dialog)
#
# @brief Return true is the given (name of a) dialog is visible.
sub dialog_visible {
my($self, $dialog) = @_;
my $d = $sel
ector" );
sub getSpectralClass {
my $self = shift;
my $d1 = RPG::Dice->new('1d6');
given ( $d1->roll() ) {
when ( [ 1, 3, 5 ] ) {
my $roll = ( $d1->roll() ) + 4;
$self = shift;
my $d1 = RPG::Dice->new('1d6');
my $d2 = RPG::Dice->new('2d6');
given ( $d2->roll() ) {
when (2) {
$self->type(A);
}
when ( [ 3 ..
e(G);
}
when ( [ 10 .. 12 ] ) {
$self->type(F);
}
}
given ( $d2->roll() ) {
when (2) {
$self->size(II);
}
when (3) {
}
}
my @pids = keys %processes;
if ($pid_file ~~ @pids and exists $processes{$pid_file}[2] and $processes{$pid_file}[2] == 0) {
$c < @$tokens - $n + 1) {
my @s = @$tokens[$c .. $c+$n-2];
$count++ if @s ~~ @search;
$c++;
}
$denominator = $count;
} else {
lf->detectLanguage($text);
my $pair = lc($text_lang . "-" . $to);
unless (@$language_pairs ~~ /($pair)/) {
croak "Unsupported languege pair";
}
my $response = $self->getXmlResp
e.yandex.net/api/v1/tr/translate?lang=$pair&text=$text");
my $code = $response->{code};
given ($code) {
when (200) {break;}
when (413) {croak "The text size exceeds the maximu
so ~~ $rx ) {
# substr($iso, $/.from, $/.chars) = $rx();
# }
#}
($iso ~~ rx:perl5/(YYYY)/) && (substr($iso,$/.from,$/.chars)= sprintf("%04d", $year))
or
($iso ~~ r
100)))
or undefine($year);
$iso ~~ rx:perl5/(WNN)/ && (substr($iso,$/.from,$/.chars)=sprintf("W%02d", $week)) or undefine($week);
$iso ~~ rx:perl5/(MM)/ && (substr($iso,$/.from,$/.ch
"%02d", $month)) or undefine($month);
$iso ~~ rx:perl5/(DDD)/ && (substr($iso,$/.from,$/.chars)=sprintf("%03d", $doy)) or undefine($doy);
$iso ~~ rx:perl5/(DD)/ && (substr($iso,$/.from,$/.char
py {
$field.trans(('_' => '-')) if not $field ~~ /^\:/ and $TRANSLATE_UNDERSCORE;
my $v = %!headers.delete($field.lc);
push @values, $v ~~ Array ?? @$v !! $v if defined $v;
}
return @
my method header (Str $field is copy, Str $val is copy, Str $op = "") {
unless $field ~~ /^\:/ {
$field ~~ s:g/_/-/ if $TRANSLATE_UNDERSCORE;
my $old = $field;
$field = lc $field;
un
entry for this field
$old ~~ s:g/\b(\w)/{$0.ucfirst}/;
%standard_case{$field} = $old;
}
}
my $h = %!headers{$field};
$h //= [];
my @old = $h ~~ Array ?? @$h !! ($h);
$val =
f (!$have_scalar_ref && (my @pk = $self->{cur_table}->pk)) {
if (not "$cur_table_prefix.*" ~~ @cols) {
$_ =~ s/^[^.]+$/$cur_table_prefix\.$&/ for @pk;
unshift @cols, @p
emeta } qw(
...
..
== != <=> <= >=
<< >>
+= -= *= /= %= ~=
&&= ||= //=
~~ =~
&& || //
-> =>
::
++ --
+| +& +^ +< +> +~
), ',');
my %shortcut_table = (
is_logical(1);
$parser->infix('<=>', 150);
$parser->infix('cmp', 150);
$parser->infix('~~', 150);
$parser->infix('|', 140, \&led_pipe);
$parser->infix('&&', 130)->is_logical(1)
rst)) { # when
if(!$test->is_logical) {
$when->first( $parser->binary('~~', $topic, $test) );
}
}
else { # default
$when->first( $pa
or croak("Cannot proceed without a 'file' or 'io' attribute");
# discard first row if columns given (see POD for 'no_header' option)
$self->{first_row} = $self->get_raw_row()
if $self->{colum
sis and seed arrays are passed as array references. The basis
array may be modified if a sub is given (since its job is to expand the basis).
It is possible to use a tied array as the basis, but usin
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
END_FORMAT
formline(<<'END_FORMAT', $errortext);
~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
END_FORMAT
print {
| ~~ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
END_FORMAT
my $TRACECONTEXT_FORMAT = <<'END_FORMAT';
@>|@|||||||||@ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
| ~~
.
If no display switches are specified, pv behaves as if -p, -t, -e,
-r,
and -b had been given (i.e. everything except average rate is
switched
on). Otherwise, only those display types
_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
t->log;
my @commit_changes = @{ $commit->changes };
my $password = $self->password;
given ( $client->single_line_commits ) {
when ('off') { } # keep it as it is
whe
$branch,
module => $module,
extra => $extra,
};
my $meth;
given ($protocol_ver) {
when ('auto') {
if ( defined($extra) ) {
$m
mns = $schema->source( $lookup )->primary_columns;
my @columns_without_primary_keys = grep{ !($_ ~~ @primary_columns) } @columns;
my $guessed_field;
# classic lookup table with only two columns
it can.
This module will B<load> each of the classes in the list of input
files or directories given (default: C<@ARGV>), auto-discover which
methods each class provides, locate the actual class the
led down to a pure source servlet, loaded into memory, and ready to take whatever arguments were given (either from the URL, session, or post form) to produce output content. I saw this in a greater
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