@_;
croak "ValidateTiny: Wrong validatation rules"
unless ref($rules) ~~ [ 'ARRAY', 'HASH' ];
$c->stash('validate_tiny.was_called', 1);
$rules =
o_rules;
foreach my $f ( @{ $rules->{fields} } ) {
next if $f ~~ $conf->{exclude};
push @fields_wo_rules, $f unless exists $h{$f};
e structure of the directory tree (including symbolic
links to directories) you might traverse a given (physical) directory
more than once (only if C<follow_fast> is in effect).
Furthermore, deleting
n;
}
sub node_level($self,$token) {
$token = $self->podname($token);
first_index { $token ~~ @$_ } $self->all_levels;
}
sub parse_pod($self, $end_cond = undef ) {
while( my $token = $sel
such that no two objects
of that class will have the same 'id'. If there are no id_by properties
given (including MyClass above that doesn't have _any_ properties), then an
implicit 'id' property will
, "", 0.0, 0.0,{0,0,0.0}}
#ifdef PM3D
typedef struct {
int opt_given; /* option given / not given (otherwise default) */
int closeto; /* from list FILLEDCURVES_CLOSED, ... */
double at;
ed without any arguments after the time-out
elapsed and the port is C<kil>ed.
If no time-out is given (or it is C<undef>), then the local port will
monitor the remote port instead, so it eventually g
}) } keys %$a;
}
$elem;
}
=head2 _XPC [ %NS | \%NS ]
Return an XPath context with the given (optional) namespaces
registered.The XHTML namespace is registered by default with the
prefix C<h
;
}
given( $type ) {
when([ "GLOB", "CODE", "STASH" ]) {
table_add( $table, "Stashname", textarea( $sv->stashname ) ) if defined $sv->stashname;
}
}
given( $type ) {
add( $table, "Output fileno", textarea( $sv->ofileno ) ) if $sv->ofileno != -1;
}
}
given( $type ) {
when([ "SCALAR", "REF", "ARRAY", "HASH", "STASH", "CODE" ]) {
table_add
my $data = $extra->render->( $sv );
defined $data or next;
my $widget;
given( $extra->type ) {
when( "widget" ) { $widget = $data }
when( "text" ) { $widg
he value of a 2D Gaussian function with mean 0
and standard deviation sig at the given (x,y) point.
!*/
// ---------------------------------------------------------------------
t 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
* d
match ) {
$end--;
}
}
#warn "return $start .. $end";
#warn "$size ~~ " . ( $end - $start );
return ( $start, $end );
}
=head2 get_window_tokens( I<pos> [, I<size
$head_str = '';
for my $expr (@{atoms($exprs)}) {
my ($name,$value) = flat($expr);
given ($name) {
when ('package') {
InContext($t,$value);
$head_str = package_t
urn $strs;
}
sub atom_to_perl {
my ($t,$atom) = @_;
my ($name,$args) = flat($atom);
given ($name) {
when ('Cursor') {
return exprs_to_perl($t,$args);
}
when ('Lint')
}
my $iter_str = atom_to_perl($t,$iter_atom);
my $type = GetAtomType($t,$iter_atom);
given ($type) {
when ('Str') {
return "my $loop (split '', $iter_str)";
}
when ('
@_;
my ($name,$atoms) = flat($rule);
if (not($name ~~ ['Any','Str','Char','Cclass','Assert','Chclass','Nclass','Blank'])) {
given ($name) {
when ('Ctoken') {
lint_spp_token
toms)} ]);
}
sub opt_spp_atom {
my $atom = shift;
my ($name,$value) = flat($atom);
given ($name) {
when ('Spec') {
return opt_spp_spec($value);
}
when ('Rule') {
pt_spp_ep($char));
}
sub opt_spp_ep {
my $str = shift;
my $char = last_char($str);
given ($char) {
when ('n') {
return "\n";
}
when ('r') {
return "\r";
eturn estr('Nclass',estr_strs($atoms));
}
sub opt_spp_catom {
my ($name,$value) = @_;
given ($name) {
when ('Cclass') {
return opt_spp_cclass($value);
}
when ('Range')
t = ();
while (
$content =~ /[PATHWAY]*\s+ko(\d*)\s*(.*)/gm )
{
if ( !( $1 ~~ @idKEGG ) && $1 ne "" ) {
$workAroundSort{$2} = $1;
push @idKEGG, $1;
t = ();
while (
$content =~ /[PATHWAY]*\s+ko(\d*)\s*(.*)/gm )
{
if ( !( $1 ~~ @idKEGG ) && $1 ne "" ) {
$workAroundSort{$2} = $1;
push @idKEGG, $1;
{ }
** unless (e) { } elsif (e) { } else { }
! ~ \ u+ u- given (e) { when (e) {} default {} }
=~ !~
* / % x NUMBERS vs STRINGS FALSE vs
== != eq ne
< > <= >= lt gt le ge < > <= >= lt gt le ge
== != <=> eq ne cmp ~~ <=> cmp
&
| ^ МОДИФИКАТОРЫ REGEX МЕТАСИМВОЛ
g;
my $c2c = $c2->content;
if ($c2c ~~ @ll || $c2c ~~ @llf) {
$match++;
}
my $c2c = $c2->content;
if ($c2c ~~ @isll) {
$match++;
e;
$self->_fasta;
$self->_strand;
}
sub _build_strand {
my $self = shift;
my $strand_sub;
given ($self->strand_bias) {
when ('plus') { $strand_sub = sub {1} }
when ('minus') { $strand_su
acklist;
for my $id (keys %$indexed_fasta) {
my $index_size = $indexed_fasta->{$id}{size};
given (ref $self->fastq) {
when ('App::SimulateReads::Fastq::SingleEnd') {
my $read_size = $self
vedb($self->expression_matrix);
}
sub _build_seqid_raffle {
my $self = shift;
my $seqid_sub;
given ($self->seqid_weight) {
when ('same') {
my @seqids = keys %{ $self->_fasta };
my $seqids_
for ($task, @more_tasks) {
$this->do($_);
}
return $this;
}
given (ref $task) {
when ('CODE') {
return $this->_add(OP_CODE, $task);
}
n't be
# surprised by shared state.
for my $key (keys %task) {
my $task;
given (ref $task{$key}) {
when ('CODE') {
$task = __PACKAGE__->new();
OP_CATCH and OP_ENDTRY.
# This limitation should help user to avoid subtle bugs.
given ($opcode) {
when (OP_CODE) {
return $param[0]->($this, @result);