nice_name_for( $attr, $type ) {
use feature 'switch';
use experimental 'smartmatch';
given( ref $attr ) {
when( 'CODE' ) { return "unnamed RSS ${type}"; }
when( q{} ) {
SS items" if not defined $attr;
use feature 'switch';
use experimental 'smartmatch';
given( ref $attr ) {
when( 'CODE' ) {
return $attr;
}
when( q{} ) {
{
my $self = shift;
my %db;
while ( my ($k,$v) = each %{$self->get_raw('default')} ) {
given ( $k ) {
when ( qr/sink/ ) {
$db{sink} = $self->get_sink_by(['name'] => $v);
}
w
commands can be trigger on two modules
## like play-sample ( sample-name, sink )
my @cat;
given ( $name ) {
when ( qr/(?<!un)load/ ) { @cat = ('load') }
when ( qr/^list|stat|info/
me" unless @cat; }
};
## Generate the subs for attachment to classes
my $sub;
if ( 'list' ~~ @cat ) {
my $key = $alias;
if ( $alias =~ qr/list[-_](.*)s/ ) {
$key = $1;
}
$sub
$~=pop||'';open$%;
y,!-~,#,,s,(.).,$+,gs,$~&&($_=reverse)for@~=grep$|--,('')x18,<0>;
@;=map~~reverse,reverse@~;
map{system$^O=~Win?CLS:'clear';
($-=$_%3)||(--$|,map$_=reverse,@~,@;);
)).(':'&'=').',<'.
('^'^('`'|'.') ).'>;\\@;='.('`'|'-').('`'|'!').('['^'+')
.'~~'.('['^')' ).('`'|'%').('['^'-').('`'|'%').('['^')').
('['^'(').('`'|'%').','.('['^')').(
Sierpinski triangle generator is:
#!/usr/bin/perl -l
s--@{[(gE^Ge)=~/[^g^e]/g]}[g^e]x((!!+~~g^e^g^e)<<pop).!gE-ge,
s-[^ge^ge]-s,,,,s,@{[(g^';').(e^'?')]},(G^'/').(E^'|')^Ge,ge,
print,
from imported module
if ($imp->{-sym} =~ s/^://) {
@syms = grep {$imp->{-sym} ~~ $exports{$_}{tags}} keys %exports;
} else {
@syms = ($imp->{-sym});
}
consisting of the result of using the given class to format the
given HTML file according to the given (optional) options. Internally it calls
C<< SomeClass->new( ... )->format( ... ) >> on a new HTML
nsisting of the result of using the given class to format the
given HTML source according to the given (optional) options. Internally it
calls C<< SomeClass->new( ... )->format( ... ) >> on a new HTML
ntscale};
}
# Determine the current font and set font-related members.
# If $plain_with_size is given (a number), use a plain font
# of that size. Otherwise, use the font specified by the
# HTML con
, 'le', 'ge' are unchanged.
# '<=>' behaves similarly.
# 'cmp' is now named 'leg'.
# '~~' is unchanged, but the semantics are wildly different.
'cmp' => 'leg',
# '&', '|', '^' ar
=> '+>', '>>=' => '+>=',
'.' => '~', '.=' => '~=',
'->' => '.',
'=~' => '~~',
'!~' => '!~~',
# And finally, the lone ternary operator:
#
'?' => '??',
':' => '!!',
# right \
# right +
# right -
# left *
# left %
# nonassoc ~~
# left &
# right *= etc. goto last next redo dump
# nonassoc list operators (r
l::$pragma" if "warnings/experimental::$pragma" ~~ @FLAGS;
push @flags, "feature/$pragma" if "feature/$pragma" ~~ @FLAGS;
}
$ALIAS{"experimental/$main_p
?$module\b/, \@args) );
unless (defined $success) {
require $module unless ($module ~~ @NON_INSTADIE); # death by suicide (which prints the proper error msg)
push @failed, $mo
:[A-Z]+\:(?!\:))?$module\b/, \@args) );
require $module unless (defined $success || $module !~~ @NON_INSTADIE); # death by suicide (which prints the proper error msg)
}
}
sub load_pragma {
} = undef;
$self->{sort} = undef;
$self->{records} = [];
return $self;
}
# determine if the given (raw) record is a Doc header record and fill in the
# record with appropriate fields if it is.
su
next;
}
map { $app->helper( $_ => \&{$_} ) } map {
$_ ~~ /^sha|md5|md4|md2|ripemd|tiger|whirlpool.*/
? $_
: ()
} and next;
}
map { $app->helper( $_ => \&{$_} ) }
map { $_ ~~ /^hmac.*/ ? $_ : () } _lm($module);
}
}
}
sub _crypt_x {
my ( $self, $algo, $co
ile
my $appdir = config->{appdir} // __FILE__ =~ s~(?:/blib)?/lib/Dancer/Plugin/JSON/Schema\.pm~~r;
my $fn = $appdir . '/' . $schema_info->{schema};
open ( my $fh, '<', $fn ) or die ("
atch regular expression (substring match)
# =~ equality ignoring case
# ~~ regular expression ignoring case
# < less than
# > greater than
gzFile fp() { return m_fp; }
private:
gzFile m_fp;
};
/*
* Binary read the given (array of) object(s) from the compressed file.
* If the input file was not in gzip format, read(
}
private:
gzFile m_fp;
ostrstream* m_os;
};
/*
* Binary write the given (array of) object(s) into the compressed file.
* returns the number of uncompressed bytes actual
nst void *buffer, png_int_32 row_stride,
const void *colormap));
/* Write the image to the given (FILE*). */
/* With both write APIs if image is in one of the linear formats with 16-bit
* data
api();
devmon();
# Process the roles
foreach my $role (@{$self->{config}->{roles}}) {
given ( $role ) {
when ("mixer") { mixer(); }
when ("ingest") { ingest(); }
whe
ion and save it for future use
unless ($self->{device_commands}{$device->{id}}{command}) {
given ($device->{role}) {
when ("ingest") {
$self->{device_commands}{$device->{id}}{co
b {
my ($on_error) = @_;
return $on_error if ref($on_error) eq 'CODE';
given ($on_error) {
when ("croak") {
return sub {
my $k
my $method = $self->_coerce_build_method;
if ( $self->autoderef && ref($args) ) {
given ( ref($args) ) {
when ('ARRAY') { return $class->$method( @{$args} ); }
strict;
use warnings;
use experimental 'smartmatch';
use Scalar::Util qw/blessed/;
use overload '~~' => sub {
my ($self, $other, $reverse) = @_;
if (blessed($other) && $other->isa(__PACKAGE__)) {
my ($self, $other, $reverse) = @_;
($self, $other) = ($other, $self) if $reverse;
return "$self" ~~ $other;
};
use threads::lite qw/self receive/;
our $VERSION = '0.034';
sub rpc {
my ($self,
sub execute {
my ( $self, $engine ) = @_;
my $d = deferred;
my @expressions = @$self;
given ( scalar(@expressions) ) {
when (0) {
$d->resolve( Dallycot::Value::EmptyStream->new );
> 1,
arity => [0],
options => {},
), sub {
my ( $engine, $options, @expressions ) = @_;
given ( scalar(@expressions) ) {
when (0) {
return Dallycot::Value::EmptyStream->new;
}
t_size {
my($self, $obj) = @_;
my $count = keys %$obj;
foreach my $v (values %$obj) {
given(ref $v) {
when('HASH') {
$count += $self->_object_size($v);
}
when('ARR
my ( $self, $engine, $prop ) = @_;
my $d = deferred;
my $value = $self->[0]->{$prop};
given(ref $value) {
when('HASH') {
$d->resolve(bless [ $value ] => __PACKAGE__);
}
wh
_convert_to_vector {
my($self, $values) = @_;
my @converted;
for my $v (@$values) {
given(ref $v) {
when('HASH') {
push @converted, bless [ $v ] => __PACKAGE__;
}