return wantarray ? $start : ($start, $end);
}
my $tag;
given ($opt{role})
{
when (undef)
{
defined $t;
}
else
{
given ($node->get_tag)
{
when ('text:tab')
}
my $tag;
my %attr = $opt{attributes} ? %{$opt{attributes}} : ();
given ($opt{type})
{
when (["lexical", "alphabetical"])
$scenario = {
summary => 'Benchmark searching string in array-of-string using smartmatch: $str ~~ @ary_of_str',
participants => [
{module=>'match::simple', code_template=>q{my $str = <
ch: $str ~~ @ary_of_str
__END__
=pod
=encoding UTF-8
=head1 NAME
Bencher::Scenario::SmartMatch::str_in_ary_of_str - Benchmark searching string in array-of-string using smartmatch: $str ~~ @ary_of
be marked and should specifically
* be taken into account separately.
*
* When glue_list is given (not NULL), in the process of marking the names, all
* glue resource records will be pushed to t
the soa serial to the number of
* seconds since unix epoch (1-1-1970 00:00).
* When data is given (i.e. the function is called via
* ldns_rr_soa_increment_func_int), it is used as the current ti
serial to the current date
* succeeded by a two digit iteration (datecounter).
* When data is given (i.e. the function is called via
* ldns_rr_soa_increment_func_int), it is used as the current ti
acket had an empty ANSWER
* section
* \param[out] match On match, the given (reference to a) pointer will be set
* to point to the matching nsec resource
te_at(buffer, buffer->_position, data, count);
buffer->_position += count;
}
/**
* copies the given (null-delimited) string to the specified position at the buffer
* \param[in] buffer the buffer
at, const char *str)
{
ldns_buffer_write_at(buffer, at, str, strlen(str));
}
/**
* copies the given (null-delimited) string to the current position at the buffer
* \param[in] buffer the buffer
*
r *buffer, const char *str)
{
ldns_buffer_write(buffer, str, strlen(str));
}
/**
* copies the given (null-delimited) string to the current position at the buffer
* increasing the capacity if neces
in = {@filter};
my $class = ref $self || $self;
for my $field (keys %{$in}) {
next if $field ~~ KEYWORDS;
for (split ' OR ', $field) {
return warn "OBJECT|ALERT: Unknown attribute: $obj
_tags = map { sprintf("%03d", $_) } ( 1..999 );
for my $tag (@all_tags) {
next if $tag ~~ @tags || $tag == '410'; # On passe, déjà traité plus haut
my @fields = $sudoc->field($t
sub {
my ($self, $record) = @_;
# Suppression des champs SUDOC dont on ne veut pas dans le catalogue
$record->fields( [ grep { not $_->tag ~~ @todelete } @{$record->fields} ] );
};
1;
fetch( $page->image_links->[0] );
},
sub {
given ( $_[0] ) {
when ('connection_failed') {
return fetch
++ -- ** ! ~ + -
=~ !~ * / % x
<< >> lt gt le ge cmp ~~
== != <=> . .. ... ,
& | ^ && || //
? : **= += -= .= *=
1 } (
qw{
-> ++ -- ** ! ~ + -
=~ !~ * / % x . << >>
< > <= >= lt gt le ge
== != <=> eq ne cmp ~~
& | ^ && || // .. ...
? :
= **= += -= .= *= /= %= x= &= |= ^= <<= >>= &&= ||= //=
=> <> <<>>
t
=head2 |>
a |> b
Returns the
=cut
=head2 ||
a || b
Returns the
=cut
=head2 ~~
a ~~ b
Returns the
Aliases: I<smartmatch>
=cut
=head2 ⫶
a ⫶ b
Returns the
=cut
=he
ten to
the directory perl thinks the code is running .
2. If a list of su_base_file_names is given (in $DATA_SEISMIC_TXT)
split files are written to $DATA_SEISMIC_SU.
3. If an su_base_file_name
the directory in which perl thinks the code is running.
2. If a list of su_base_file_names is given (in $DATA_SEISMIC_TXT)
split files are written to $DATA_SEISMIC_SU.
3. If an su_base_file_name
ll be
wrapped in elements. C<$1> is wrapped in $tag1, with attributes C<$atts1> if
C<$atts1> is given (as a hashref), C<$2> is wrapped in $tag2...
if C<$elt> is C<< <p>tati tata <b>tutu tati titi</b
ry hash-ref, and returns
true if the document matches the query, false otherwise. If no query
is given (or an empty hash-ref is given), true will be returned (every
document will match an empty query
ll be
wrapped in elements. C<$1> is wrapped in $tag1, with attributes C<$atts1> if
C<$atts1> is given (as a hashref), C<$2> is wrapped in $tag2...
if $elt is C<< <p>tati tata <b>tutu tati titi</b> t
atch - Smartmatch done right
=head1 VERSION
version 0.011
=head1 SYNOPSIS
say "YES" if $value ~~ [1, 2, qr/42/];
=head1 DESCRIPTION
B<NOTE: This module is currently still experimental and the d
# we're done by specific exit code
return $post->(@_)
if $set[0] ~~ $exit;
# continue monitoring
$monitor->(@set);
}
}
} #_monito
ther scenarios.
This is matched by:
Given qr/a usable (\S+) class/, sub { use_ok( $1 ); };
C<Given()> is a function exported by L<Test::BDD::Cucumber::StepFile> that
accepts two arguments: a regul
|
| but | "Aber" |
| given (code) | "Angenommen", "Gegebensei", "Gegebenseien" |
| when (code) | "Wenn"