lash screen for Perl/Tk programs.
It uses lowlevel Perl/Tk stuff, so upward compatibility is not given
(the module should work at least for Tk800.015, .022, .024, .025 and
Tk804.025, but does not work
!$_->[-1] or
!$o or
!(@{ $_->[-1]->raw } ~~ @{ $o->raw })
),
'delete'
);
}
, 0;
error $?, 'Child %s returns non-zero code: %s', $_, $?;
}
$tarantool->kill('KILL') if $$ ~~ $primary_pid;
df 'There were %s errors total', $errors;
exit($errors && 1);
=head1 NAME
stress
roc;
$self->log->error("[process $proc->{pid}]: IO ($io) is unsupported" ) and return unless $io ~~ [qw/stdout stderr stdres/];
$self->log->error("[process $proc->{pid}]: IO handler ($io) is EMPTY"
'Command can be pure scalar, arrayref or coderef.') and return
if $cmd_ref ne '' && not $cmd_ref ~~ ['CODE', 'ARRAY'];
# callbacks...
$self->error("STDOUT callback defined, but is not code refere
=> sub { __PACKAGE__->make_combined(_swap(@_)) },
'+=' => 'prepend',
'.=' => 'append',
'~~' => 'exists',
'bool' => sub { 1 },
;
has match_list => (
(_TYPES?(isa=>ArrayRef()):()),
pend>.
=item * B<< addition assignment >> C<< += >> - C<prepend>.
=item * B<< smart match >> C<< ~~ >> - C<exists> (with C<$ignore_failover> false).
=back
=head1 BUGS
Please report any bugs to
L<
d smart match and the C<given> block. This allows stuff
like:
my $thing = get_foo_or_bar();
given ($thing)
{
when ("foo") { ... }
when ("bar") { ... }
when (looks_like_number($_)) { ...
tch table is able to handle a
particular value.
my $sex_chromosomes = 'AA';
if ($biological_sex ~~ $sex_chromosomes)
{
say "Dispatch table cannot handle chromosomes $sex_chromosomes";
}
else
$can = $caller->can('can');
*{"$caller\::can"} = sub {
my ($invocant, $m) = @_;
return if $m ~~ [@subs];
goto $can;
}
}
__PACKAGE__
__END__
=head1 NAME
MooseX::hasn't - syntactic sugar to
w block unblock approve ignore/;
use experimental 'smartmatch';
if ( $action ) {
if ( $action ~~ @actions ){
return $self->_api->_post( $url, { action => $action } )
}
carp "Invalid action
;
our @EXPORT_OK = qw(pick_best_venue);
sub pick_best_venue {
my $year = shift // 2015;
given ($year) {
when ('2015') { # force string comparison
return "Granada";
keep it. Maybe changing it a bit to "Art as engineering, engineering as art", or much better, Art ~~ Engineering.
=item B<Air tickets in the proposal are dated as "September 2013". Is it a
typo or t
= [ "\t", "\f", "\n", "\r", "\013", "\b" ];
for my $c ( split //, $string ) {
if ( $c ~~ $special ) {
for ($c) {
when ("\t") { $c = '\\t' }
w
logDebug("Check match: src " . scalar(@srcList) . ", dest " . scalar(@dstList));
return \@srcList ~~ \@dstList;
}
=head2 read_tables
Virtual method for reading table definitions.
=cut
sub read_ta
} $e->dependencies;
my @pendingNames = map { $_->name } @pending;
my @unsatisfied = grep { $_ ~~ @deps } @pendingNames;
my @existing = map { $_->name } $self->entity->list;
# Include current
y in list of available entries, so that we can allow self-reference
my @unresolved = grep { !($_ ~~ [@pendingNames, @existing, $e->name]) } @deps;
if(@unresolved) {
logError("%s unresolved (pen
nsaction in progress" unless $self->transaction->count;
die "Mismatched transaction" unless $tran ~~ $self->transaction->last;
}
=head2 transaction_commit
Commit this transaction to storage - makes
nsaction in progress" unless $self->transaction->count;
die "Mismatched transaction" unless $tran ~~ $self->transaction->last;
}
=head2 transaction_end
Release the transaction on completion.
=cut
nsaction in progress" unless $self->transaction->count;
die "Mismatched transaction" unless $tran ~~ $self->transaction->last;
$self->transaction->pop;
return $self;
}
sub backend_ready { shift->{
-----------------------------------
sub _validate_module_name {
my ($module_name) = @_;
given ( $module_name ) {
when ( $module_name =~ m/\A[A-Za-z]+\z/msx )
{
cro
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
emplate::Element',
'BASE' => 'Excel::Template::Base',
);
my %isBuildable = map { $_ => ~~1 } qw(
WORKBOOK WORKSHEET
FORMAT BOLD HIDDEN ITALIC LOCKED OUTLINE SHADOW STRIKEOUT
IF
or '$class' ($filename) because $@\n";
}
$Loaded{$class} = ~~1;
}
return ~~1;
}
}
{
my @param_names = qw(name class isa);
sub register
{
rams{class} );
$Manifest{$name} = $params{class};
$isBuildable{$name} = ~~1;
return ~~1;
}
}
sub _create
{
my $self = shift;
my $name = uc shift;
return unl
a ~~ $b;
foreach (keys %$a) {
return if !match( $a->{$_}, $b->{$_} );
}
return 1;
}
# avoid smartmatch doing number matches on strings
# e.g. '5x' ~~
5 is true
return if looks_like_number($a) xor looks_like_number($b);
return $a ~~ $b;
}
1;
__END__
=pod
=encoding utf-8
=head1 NAME
Test::Magpie::Util - Internal utility functions for T
rd from either side of any other alias. Aliases cannot be chained.
If only a single argument is given (again, make sure you quote your phrases), it will report if there are any score aliases to or fr
e given but it's too much typing.
=head1 SYNOPSIS
use Acme::Given::Hash;
my $result = $given ~~ gvn { $value1 => $scalar
, $value2 => do { ... }
} || $default ;
# is going to result in the same thing as:
my $result;
given($given) {
when ($value1) { $result = $scalar }
when ($value2) { $result = do{ ... }}
= $default }
};
# if you use an arrayref you can do more complex matching
$result = $given ~~ gvn [ 'scalar' => 'still works, just like the hash'
, qr{reg} => [qw{al
p = $self->{client};
unless (blessed($imap)) {
$@ = "Parameter 'client' must be given (Mail::IMAPClient)";
return undef;
}
return $self;
}
=head2 $queue->is_empt
elf->uri;
})
);
} else {
my ($rh, $wh) = portable_pipe;
given (fork) {
when (undef) {
AE::log fatal =>
"couldn'