sequence (I<O> - I<E>). Alias: C<observed_deviation>. Alternatively, the observed value might be given (as B<observed> => NUM), and so the method only has to get the expected value (as specified in L<
+)\](.*)$/ )
{
if ( $1 ne '' && $3 ne '' ) { $msg=', two replacement strings given (expected one)'; push @err,$item; next; }
my $rpl;
if ( $1 ne '' )
\@{"$mod\::" . ($lump ? "LUMPED_DISTS" : "PACKED_DISTS")};
if ($self->zilla->name ~~ @$dists) {
my $dist = $mod; $dist =~ s/::/-/g;
say colored
#List values can be either list refs or CSV strings. For users, if the single
#string 'ALL' is given (not part of a list), then all users will be listed.
#
#If nopartinfo flag is set, the sshare com
_NEW_cdm_GIVEN(c, father) (struct zx_cdm_GIVEN_s*)zx_new_elem((c),(father),zx_cdm_GIVEN_ELEM)
int zx_DEC_ATTR_cdm_GIVEN(struct zx_ctx* c, struct zx_cdm_GIVEN_s* x);
int zx_DEC_ELEM_cdm_GIVEN(struct zx
zx_DEEP_CLONE_cdm_GIVEN(struct zx_ctx* c, struct zx_cdm_GIVEN_s* x, int dup_strs);
void zx_DUP_STRS_cdm_GIVEN(struct zx_ctx* c, struct zx_cdm_GIVEN_s* x);
int zx_WALK_SO_cdm_GIVEN(struct zx_ctx* c, s
m_GIVEN_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx));
int zx_WALK_WO_cdm_GIVEN(struct zx_ctx* c, struct zx_cdm_GIVEN_s* x, void* ctx, int (*callback)(struct zx_node_s* node, vo
c',
'and' => 'logic',
'//' => 'logic',
'&' => 'bitwise',
'|' => 'bitwise',
'~~' => 'match',
);
sub cmp_ok($$$;$@) {
my ($got, $op, $exp, $name, @diag) = @_;
my $ctx = c
m =~ (str)
=item &&
=item ||
=item xor
=item or
=item and
=item //
=item &
=item |
=item ~~
=back
=back
=head2 DIAGNOSTICS
=over 4
=item diag(@messages)
Write diagnostics messages. All
n zero. For "wrap" formats, it is the no. of characters in a row.
If a max. length specifier is given (ie. "@50:..."), then this value is returned.
[2] - The justification (either "<", "|", ">", or
> 0,
}
=item *
C<DEFAULT> - the default configuration.
Sample Password:
~~12:settle:SUCCEED:summer:48~~
Preset Definition:
{
symbol_alphabet => [qw{! @ $ % ^ & * - _ + =
lue })>
Pass a hashref of options to the constructor for Ossec::Log::Parse. Options that
can be given (in descending order of importance):
=over 4
=item B<fh>
Filehandle to be used as data source.
T)>
=item C<new(NAME)>
Constructor. FILE, NAME or TEXT are optional arguments.
When a name is given (a string without 'C</>', 'C<\>' or 'C<.>') a lookup is
done using File::BaseDir. If the file fou
lue })>
Pass a hashref of options to the constructor for Ossec::Log::Parse. Options that
can be given (in descending order of importance):
=over 4
=item B<fh>
Filehandle to be used as data source.
lan 25;
if !eval('("a" ~~ /a/)') {
skip_rest "skipped tests - rules support appears to be missing";
} else {
# Testing the parsing of verious forms of numbers
is(?("1" ~~ /^<Int>$/),Bool::True,"
~~ /^<Int>$/),Bool::True,"-1 is parsed as an integer");
is(?("1." ~~ /^<Rat>$/),Bool::True,"1. is parsed as a Rat");
is(?("-1." ~~ /^<Rat>$/),Bool::True,"-1. is parsed as a Rat");
is(?("0.1" ~~
" ~~ /^<Rat>$/),Bool::True,"0.1 is parsed as a Rat");
is(?(".1" ~~ /^<Rat>$/),Bool::True,".1 is parsed as a Rat");
is(?("-.1" ~~ /^<Rat>$/),Bool::True,".1 is parsed as a Rat");
is(?("10.01" ~~ /
@dirs = split("/", $directories);
@dirs = @dirs.map:{ split("\\", $_) };
if (($directories ~~ rx:P5"[\\/]\Z(?!\n)")) {
@dirs[@dirs - 1] = '';
}
@dirs = map {~$_ }, @dirs;
r
($nofile) {
$path ~~ rx:P5"^((?:[a-zA-Z]:|(?:\\\\|//)[^\\/]+[\\/][^\\/]+)?)(.*)";
$volume = ~$0;
$directory = ~$1;
}
else {
$path ~~ rx:P5"^((?:[a-zA-Z]:|(?:
ew_path;
my $i = 0;
loop ($i = 0; $i < @path; $i++) {
@path[$i] ~~ s:P5:g"/"\\";
if (@path[$i] ~~ m:P5"\\$") {
push(@new_path, @path[$i]);
}
else {
ult returns the closest
full stop aperture between 1 and 64.
If the optional third argument is given (a reference to a list of
possible aperture values), then the returned aperture will be
the close
the closest
full stop between 1920s (32 minutes) and 1/8000s.
If the optional third argument is given (a reference to a list
of possible shutter speeds), then the returned shutter speed
will be the c
ne_hash => [ $_->id ]);
if ($f) {
next if $f->id ~~ $_->id;
next if $f->value ~~ $_->value;
}
error 1, 'select exists tuple';
id ], TNT_FLAG_RETURN);
if ($f) {
next if $f->id ~~ $_->id;
next if $f->value ~~ $_->value;
}
error 1, 'delete exists tuple';
ne_tree => [ $_->id ]);
if ($f) {
next if $f->id ~~ $_->id;
next if $f->value ~~ $_->value;
}
error 1, 'select exists tuple';
id ], TNT_FLAG_RETURN);
if ($f) {
next if $f->id ~~ $_->id;
next if $f->value ~~ $_->value;
}
error 1, 'delete exists tuple';
ct to another.
=head2 hex_neighbor ($direction)
Returns a new neighboring hex in the direction given (0-5).
=head1 AUTHOR
David Farrell <dfarrell@cpan.org>
=head1 COPYRIGHT AND LICENSE
This soft
nice_name_for( $attr, $type ) {
use feature 'switch';
use experimental 'smartmatch';
given( ref $attr ) {
when( 'CODE' ) { return "unnamed RSS ${type}"; }
when( q{} ) {
SS items" if not defined $attr;
use feature 'switch';
use experimental 'smartmatch';
given( ref $attr ) {
when( 'CODE' ) {
return $attr;
}
when( q{} ) {
while( @list ) {
use experimental 'smartmatch';
use feature 'switch';
given( shift @list ) {
when( 'HASH' eq ref $_ ) { push @results, [ %{ $_ } ] }
[@_];
my $elt_type= $tc->[1]->[0];
if (!isprim($elt_type)) {
if (not ($tc->[1] ~~ $v->[0]->{Type}->[1]) ) {
die "Type error in Array type check:";
}
}
ore, we can do something similar to pattern matching by using a variant() function like this:
given(variant $t) {
when (Just) : untype $t;
when (Nothing) : <do something else>
}
So variant()
'Type' => $a->{Type}->[2]};
}
sub unshift {
(my $a, my $v) =@_;
if ($v->{Type} ~~ $a->{Type}[2]) {
unshift @{$a->{Val}}, $v->{Val};
} else {
die "T