onshine::Element->new($base_args);
for my $header ( @{ $build_args->{headers} } ) {
given ( delete $header->{header_type} ) {
when ('link_image') {
$header->{c
{previous}->{class} .= 'previous';
$base_args->{next}->{class} .= 'next';
}
given ( $build_args->{disable} ) {
my $dis = 'disabled';
when ('previous') {
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
{
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"])
= $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
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
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
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"
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
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
@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++) {
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
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 {
||
&&= &&
^.. ..^
%% ≅
~~ !~
<~>
<=> =~=
<<= >>=
<<
>{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
optical system.
In the forward direction, t_perspective generates perspective views of
a sphere given (lon/lat) mapping or vector information. In the reverse
direction, t_perspective produces (lon/l
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.
optical system.
In the forward direction, t_perspective generates perspective views of
a sphere given (lon/lat) mapping or vector information. In the reverse
direction, t_perspective produces (lon/l
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.