my $self = shift;
my $value = shift // 'true';
unless ($value ~~ ['true', 'none', 'condition'])
{
if ($value == TRUE)
{
my $self = shift;
my $value = $self->get_attribute('display');
given ($value)
{
when (undef) { return TRUE }
elf = shift;
my $type = shift or return undef;
unless ($type ~~ [ 'standard', 'lines', 'line', 'curve' ])
{
alert "Not allowed con
my $v;
# Originally this code used the being-discontinued given/when construct
# given ($opt{$k}) {
# when(TRUE) { $v = 'true' } # TRUE is 1
# when(FALSE) { $v = 'none' }
}
sub is_numeric_family
{
my $self = shift;
my $f = shift or return undef;
#return ($f ~~ @NUMERIC_FAMILIES) ? TRUE : FALSE;
return fake_smartmatch($f, \@NUMERIC_FAMILIES) ? TRUE : FALSE
{
my $family = $1;
#if ($family ~~ [@FAMILIES])
if (fake_smartmatch($family, [@FAMILIES]))
ype=>"perl_code"}],summary=>"Benchmark searching string in array-of-string using smartmatch: \$str ~~ \@ary_of_str"}},"func.bencher_version"=>undef,"func.code_startup"=>undef,"func.cpu_info"=>[{L2_cac
samples"]}]];
1;
# ABSTRACT: Benchmark searching string in array-of-string using smartmatch: $str ~~ @ary_of_str
=head1 DESCRIPTION
This module is automatically generated by Pod::Weaver::Plugin::Be
and the ~~ operator, and 5.40 will
# supposedly remove them entirely. To preserve existing semantics of
# existing code including user-visible functions, I'm emulating (a subset of)
# the ~~ operato
{
my $cell = $table->get_cell($i, $j);
if ($cell->get_type ~~ $filter) {
$count++;
$amount += $cell->get_value;
my $cell = $row->get_cell($j) or last CELL;
if ($cell->get_type ~~ $filter) {
$count++;
$amount += $cell->get_value;
{
my $v;
given ($opt{$k})
{
when
ype} || 'number';
$e = ODF::lpOD::ListLevelStyle->create($type) or return FALSE;
given ($type)
{
when (['number', 'outline'])
{
{
my $caller = shift;
my $type = shift;
my $tag;
given ($type)
{
when (undef)
{
set_type
{
my $self = shift;
my $type = shift;
given ($type)
{
when (undef)
{
my $self = shift;
my $type = $self->get_type();
my $value;
given ($type)
{
when ('string')
{
my $type = $self->get_type();
my $v = check_odf_value($value, $type);
given ($type)
{
when ('string')
{
my $param = shift // "";
$param = shift if $param eq lpod;
given ($param)
{
when (undef) {}
when (TRUE
my $arg = shift;
return FALSE unless $arg;
my $v = lc $arg;
return $v ~~ ["false", "off", "no"] ? FALSE : TRUE;
}
sub is_false
{
return is_tru
= shift;
return undef unless defined $value;
my $type = shift;
given ($type)
{
when (['float', 'currency', 'percentage'])
erhaps you wanted: "
. ":where({ $param->{var} ~~ $match{where_expr} })"
)
: $ma
multi factorial ($n == 0) { 1 }
multi alert ($msg eq "") {}
multi alert ($msg ~~ undef) {}
multimethod add_client ($data, $ID =~ /X\w{4}\d{6}/) {
die "Can't add an X
s the only parallel processed reponse method (the other ones are
pure CPU-only bound) that sleep given (or random) number of seconds and
only then returns the request response with when it started and
s SUDOC dont on ne veut pas dans le catalogue
# Koha
$record->fields( [ grep { not $_->tag ~~ @todelete } @{$record->fields} ] );
$record->append( MARC::Moose::Field::Std->new(
ta
eginning with $word
local $CWD = "/home";
return [grep {-d && $_ ~~ /^\Q$word/} <*>];
},
},
force => {schema=>[bool => {default=>0}]},
grep {-d && $_ ~~ /^\Q$word/} <*>];
# exclude users already mentioned by user
my $ary = $args{args}{usernames};
$res = [grep {!($_ ~~ @$ary)}] @$res
= get_logger();
my $statement = $DB->{query};
eval {
confess "no ref to hash argument param given ({query=>''})" if ref($DB) ne "HASH";
confess "no ref to array argument data (for returning dat
eyfields} and ref($DB->{keyfields}) eq "ARRAY";
eval {
confess "no ref to hash argument param given ({query=>'',keyfields=>[]})" if ref($DB) ne "HASH";
confess "no ref to hash argument data (for
Dumper($coldefs)) if $logger->is_trace;
my %IDName;
if ($addID) {
confess "no valid addID given (needs to be ref to hash, key=fieldname, value=ID)!" if ref($addID) ne 'HASH';
$IDName{$_} = 1
pDataIntoDB/EAI::DB::storeInDB as an indicator for keys for debugging information if primkey not given (errors are shown with this key information). Format is the same as for primkey
deleteBeforeIns
en)
format_defaultsep => "", # default separator when format_sep not given (usually in site.config), if no separator is given (not needed for EAI::File::readExcel/EAI::File::readXML), "\t" is used f
the process
countPercent => 0, # percentage for counting File text reading and DB storing, if given (greater 0) then on each reaching of the percentage in countPercent a progress is shown (e.g. eve
ARRAY') {
@columnnames = @{$File->{columns}};
} else {
$logger->error("no field information given (columns should be ref to array or ref to hash, you have to initialize it as that)".longmess());
RRAY') {
@columnnames = @{$File->{columns}};
} else {
$logger->error("no field information given (columns should be ref to array or ref to hash, you have to initialize it as that)".longmess());
pDataIntoDB/EAI::DB::storeInDB as an indicator for keys for debugging information if primkey not given (errors are shown with this key information). Format is the same as for primkey
=item deleteBefo
given)
=item format_defaultsep
default separator when format_sep not given (usually in site.config), if no separator is given (not needed for EAI::File::readExcel/EAI::File::readXML), "\t" is used f
of the process
=item countPercent
percentage for counting File text reading and DB storing, if given (greater 0) then on each reaching of the percentage in countPercent a progress is shown (e.g. eve
L(A)->dims[0], $PDL(A)->dims[1]) : 1)); int [o,phys]signum())
=for ref
LU decomposition of the given (real or complex) matrix.
=for bad
LU_decomp ignores the bad-value flag of the input ndarrays.
next;
}
# !~ and ~~ methods
if ($method eq '~~' or $method eq '!~') {
$code =
b _reauthenticate {
my $self = shift;
# Mattermost authentication tokens expire after a given (and unknown) amount
# of time. By default, the client will reconnect every hour in order to
\|\|= | \|\| | \|\.= | \|\. | \|= | \| | # "\x7C" [|] VERTICAL LINE (U+007C)
~~ | ~\. | ~= | ~ # "\x7E" [~] TILDE (U+007E)
) /xmsgc
(expr)
# unless (expr)
# while (expr)
# until (expr)
# given (expr)
# when (expr)
# CORE::catch (expr)
# catch (expr)
elsif (/