Moonshine::Element->new($base_args);
for my $field ( @{ $build_args->{fields} } ) {
given ( delete $field->{field_type} ) {
when ( 'text' ) {
$form_group->add_
onshine::Element->new($base_args);
for my $header ( @{ $build_args->{headers} } ) {
given ( delete $header->{header_type} ) {
when ('link_image') {
$header->{c
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
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"])
{
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;
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
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
d, to define a
# rectangular outline.
# $grfx is graphics context, non-dummy if 'outline' option given (draw outline)
#
# TBD: what to do if any line too short to use?
sub _get_column_outline {
e, $f],
'point' => [$x,$y]
'repeat' => $boolean
)
A six element list may be given (C<matrix>) for a
further transformation matrix:
$a = cos(rot) * scale factor for X
$b
in the
indicated order>.
A matrix of 6 values may also be given (C<matrix>). The transformation matrix
is updated.
A C<point> may be given (a point to be multiplied [transformed] by the
completed m
= $pdf->get_font() # Get
$font = $pdf->get_font(%info) # Set
=over
If no parameters are given (C<@current = $pdf-E<gt>get_font()>), a list
(array) is returned giving the I<current> font setti
t been explicitly set, the
current font will be the default font.
If at least one parameter is given (C<%info> hash), the font manager will
attempt to discover the appropriate font (from within the
cket header
my $length = 20 + length($attributes);
# generate new sequential id if not given (one byte size)
my $req_id = $h{request_id} // ($request_id++) & 0xff;
# RFC3579 Message
@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"
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
||
&&= &&
^.. ..^
%% ≅
~~ !~
<~>
<=> =~=
<<= >>=
<<
>{value} = $block;
}
return $obj;
}
# "given(expr) {...}" construct
if (/\Ggiven\b\h*/gc) {
my $expr = (
of the `given/when` construct",
reason => "expected `given(expr) {...}`",
code => $_,
$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
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
nd delete old
# assume any leading '-' already removed
# warning if both deprecated and new name given (use new)
# release at T-6 months, consider issuing warning to remind update needed
# release at
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.
the incoming scn_name is known, record the name
in our reloc section names table.
For a given (debug) section there can be a .rel or a .rela,
not both.
The name-to-index in this table