n",
$keys, $_, $caller, $filename, $linenum
unless $keys ~~ $keycheck;
} else {
die sprintf "key list not supported with type %s at
} elsif ( ! defined $value ) {
return $type & UNDEF;
} else {
given ( ref $value ) {
when ( '' ) { return $type & SCALAR };
default
die sprintf "value '%s' is not a legal value for $name\n", $value // '*undef*'
unless grep $_ ~~ $value, @$legit;
}
# ----------------------------------------------------------------------------
');
$self->namespace ('');
$self->primitive ('no');
}
# return the same value as given (but others may override it - eg,
# Boolean changes here 1 to 'true'
sub _express_value {
');
$self->namespace ('');
$self->primitive ('no');
}
# return the same value as given (but others may override it - eg,
# Boolean changes here 1 to 'true'
sub _express_value {
a decent order, to minimize the
# distance between elements of the pairs.
#
# e.g. given ( [d,c], [a,b], [b,c] )
# the best ordering would be one of
# ( [a,b], [b,c], [c,d] )
<undef>';
$@ //= '<unknown error>';
die "retval:[$retval] \$\@:[$@]";
}
given ( ref $self->{output} ) {
when ( 'SCALAR' ){
${ $self->{output} } = $self->{_
al => 4);
#$collision->time == 1. More on that in L<Collision::2D::Collision>.
#$collision->axis ~~ [0,1] or [0,-1]. More on that in L<Collision::2D::Collision>.
=item intersection
print 'whoops'
= shift;
my @args = @_;
my $minified = '';
foreach my $arg ( @args ) {
given ( $arg ) {
when ( -f $arg ) {
$minified .= $self->process_file( $arg
r for the widget variables:
$_->has('label') ~~ exists $_{A}{label} ? (label=>$_{A}{label}) : ()
$_->has('label->value') ~~ exists $_{A}{label} ? (value=>$_{A}{label}) : ()
$
ic type, e.g.:
$sth->bind_param( 1, $value, { ado_type => 6 } ); # adCurrency
If no type is given (neither by the provider nor by you), the datatype
defaults to SQL_VARCHAR (adVarChar).
=head2
eq 'HASH')
? exists $k->{$err}
: $k eq $err
EOS
} else {
$test = '$err ~~ $k';
}
eval q#
sub raise(*@)
{
my $err = shift;
my @c = @CATCH;
local @CATCH = @LAST_C
ould only be
# done once for the application, not every time a command is run.
#~~~~~~~~~~~~~~~~~~~~~~~
# ARGV_Format
#
# non-interactive case: @ARGV: [app-opts] <cmd> [
;
Returns a usage message for the application or a specific (sub)command.
If a command name is given (optionally with subcommands), returns a usage
message string for that (sub)command. If no comma
my @keys = keys %$result;
return $result unless @keys == 1;
return $result unless $keys[0] ~~ ['int', 'str', 'real'];
my $values = $result->{$keys[0]};
return @$values == 1 ? $values-
eader, $new_entries, $feed_obj, $error)
This callback is called if the C<interval> parameter is given (see above)
with the same arguments as the callback given to the C<fetch> method (see below).
=i
e
data that has been returned.
=head2 serialize()
C<serialize()> will serialize the data it is given (if it's a
reference), and if the data is large enough and the savings
significant enough (and th
p', "print usage message and exit" ],
);
print( $usage->text ), exit if $opt->help;
given ( scalar @ARGV ) {
when (0) {
$usage->die(
{
my $then = $now->clone;
if ( $props{unit} ) {
my $unit = $props{unit};
given ($unit) {
when ('h') { $unit = 'hours' }
when ('m') { $unit = 'minutes' }
if ( $hour < 13 ) {
$then->add( hours => 12 ) while $then < $now;
given ($suffix) {
when ('a') { $then->add( hours => 12 ) if $then->hour >= 12 }
fault => sub { getcwd },
documentation => 'Directory for the keyword files and the feed file if given (default: current directory)',
);
has log_dispatch_conf => (
is => 'ro',
isa => 'HashRef',
la
(\w+)
}
rule value {
(\w+)
}
rule entry {
<key> '=' <value> (';')?
}
}
my $text = "foo=bar;me=self;";
if $text ~~ /^<Properties::entry>+$/ {
"Matched".say;
} else {
"Not Matched".say;
}
EXPR1)) {
if ($_ =~ (EXPR2)) { ... }
}
[Update: the C<=~> operator has been renamed C<~~>.]
=head3 Table 1: Matching a switch value against a case value
$a $b Type of Ma
an operator on every case, simply provide an empty given,
to be read as "given nothing...":
given () {
when $a.isa(Ant) { ... }
when $b.isa(Bat) { ... }
when $c.isa(Cat) {
}
}
This works because =~ is considered a boolean operator.
[Update: The operator is C<~~> now.]
RFC:
catch not &TooSevere => { ... }
Now:
when not &TooSevere { ... }
The unar
DOC use Pod6::Markovian;
or:
DOC BEGIN {
use Pod6::Literate;
if ($?DOC ~~ /short/) {
literate_sequence(<
NAME
AUTHOR
mplex> with
a C<NaN> in real or imaginary part may be considered a C<NaN> itself (and
C<(NaN + 1i) ~~ NaN> is C<True>).
Coercion of a C<Complex> to any C<Real> returns the real part (coerced, if
nece