rdinates given
@corners = page_size(@corners);
}
# scale down size if User Unit given (e.g., Letter => 0 0 8.5 11)
# we have a global userUnit, and possibly a page userUnit overri
Moonshine::Element->new($base_args);
for my $field ( @{ $build_args->{fields} } ) {
given ( delete $field->{field_type} ) {
when ( 'text' ) {
$form_group->add_
ectable
(clickable, to bring up the annotation text). These
are four sets of C<x,y> coordinates, given (for Left-to-Right text) as the
upper bound Upper Left to Upper Right and then the lower bound L
is marked by a straight underline.
=back
=item color => I<array of values>
If C<color> is not given (an array of numbers in the range 0.0-1.0), a
medium gray should be used by default.
Named colo
s
to no border ([0 0 0]), if no /Border entry is given).
Optionally, a dash pattern array may be given (C<on> length, C<off> length,
as one or more I<pairs>). The default is a solid line.
The border
', class => 'container-fluid' } )
);
for my $nav ( @{ $build_args->{navs} } ) {
given ( delete $nav->{nav_type} ) {
when ('header') {
$nav->{mid} = $build_
my $form = $self->form($base_args);
for my $field ( @{ $build_args->{fields} } ) {
given ( delete $field->{field_type} ) {
when ('submit_button') {
$form->add
lines.
--rootname=string default: "Builder" for PDF::Builder. --rootname must be
given (not an empty string). For example, there are also PDF::API2
and PDF::Report, among ot
{previous}->{class} .= 'previous';
$base_args->{next}->{class} .= 'next';
}
given ( $build_args->{disable} ) {
my $dis = 'disabled';
when ('previous') {
t = Moonshine::Element->new($base_args);
for my $nav ( @{ $build_args->{navs} } ) {
given ( delete $nav->{nav_type} ) {
when ('nav') {
$base_element->add_child
onshine::Element->new($base_args);
for my $header ( @{ $build_args->{headers} } ) {
given ( delete $header->{header_type} ) {
when ('link_image') {
$header->{c
@corners);
}
my $UU = $self->{'pdf'}->{' userUnit'};
# scale down size if User Unit given (e.g., Letter => 0 0 8.5 11)
if ($isName && $UU != 1.0) {
for (my $i=0; $i<4; $i++) {
en=(); # from StackOverflow 7651
@FILES = grep { ! $seen{$_} ++ } @FILES;
# check for no files given (found)
if (0 == @FILES) {
die "Please specify at least one file name or glob on command line\n"
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
$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
{
my $cell = $table->get_cell($i, $j);
if ($cell->get_type ~~ $filter) {
$count++;
$amount += $cell->get_value;
}
}
say "Found $amount in $count numeric cells";
[ 2024 Note: The ~~ operator was deprecated in Perl 5.38.1 and will be removed in the future,
so the examples should b
my $cell = $row->get_cell($j) or last CELL;
if ($cell->get_type ~~ $filter) {
$count++;
$amount += $cell->get_value;
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"])
||
&&= &&
^.. ..^
%% ≅
~~ !~
<~>
<=> =~=
<<= >>=
<<
>{value} = $block;
}
return $obj;
}
# "given(expr) {...}" construct
if (/\Ggiven\b\h*/gc) {
my $expr = (
of the `given/when` construct",
reason => "expected `given(expr) {...}`",
code => $_,
ry in
the configuration under '/xao/page/render_cache_allow' or with a
'xao.cacheable' parameter given (e.g. something like <%Page ...
xao.cacheable%>).
=item *
There is no "/xao/page/render_cache_u
nes to list (a windowful).
$incr = $window - 1;
# Set the start to the argument given (if there was one).
$start = $1 if $1;
# Back up by the context amount.
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.
nes to list (a windowful).
$incr = $window - 1;
# Set the start to the argument given (if there was one).
$start = $1 if $1;
# Back up by the context amount.