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
t = Moonshine::Element->new($base_args);
for my $nav ( @{ $build_args->{navs} } ) {
given ( delete $nav->{nav_type} ) {
when ('nav') {
$base_element->add_child
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
{previous}->{class} .= 'previous';
$base_args->{next}->{class} .= 'next';
}
given ( $build_args->{disable} ) {
my $dis = 'disabled';
when ('previous') {
@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++) {
= $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
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 {
Moonshine::Element->new($base_args);
for my $field ( @{ $build_args->{fields} } ) {
given ( delete $field->{field_type} ) {
when ( 'text' ) {
$form_group->add_
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
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"])
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
||
&&= &&
^.. ..^
%% ≅
~~ !~
<~>
<=> =~=
<<= >>=
<<
>{value} = $block;
}
return $obj;
}
# "given(expr) {...}" construct
if (/\Ggiven\b\h*/gc) {
my $expr = (
of the `given/when` construct",
reason => "expected `given(expr) {...}`",
code => $_,
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
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.