Group
Extension

Matches 1357

Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Getopt-Std/lib/Getopt/Std.pm ( view source; MetaCPAN )

sub hashify (Str $spec is copy) returns Hash {
    my @with_args = $spec ~~ rx:P5:g/([^:]):/;
    my @without_args = $spec ~~ rx:P5:g/([^:])(?!:)/;
    #@with_args.perl.say;
    (map { ;~$_ => 0 }, @
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Automata-Cellular/lib/Automata/Cellular.pm ( view source; MetaCPAN )
ate = (+<<@.state[$.steps..(@.state.elems() - $.steps)]).join(""); 
        $state ~~ s:g/0/$false/;
        $state ~~ s:g/1/$true/;
        "Stage $.stage: $state";
    }

    multi sub *postfix:<++>
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/perl5/PIL2JS/lib6/Prelude/JS/Smartmatch.pm ( view source; MetaCPAN )
sub infix:«~~» (Item $left, Item $right) is primitive {
  if $right.isa(::Rul) {
    $right.matcher.($left);
  } elsif $right.isa(Str) {
    $left eq $right;
  }
}

sub infix:«!~» (Item $left, Ite
m $right) is primitive { not $left ~~ $right }
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/pX/Common/Regexp-Parser/Regexp-Parser-0.20-modified/t/02subclass.t ( view source; MetaCPAN )
?:.*foo&\D*(\d+))' );
ok( $r1->qr, ~~qr/^(?:(?=.*foo)\D*(\d+))/ );

ok( $r2->regex('^(?:.*foo!\D*(\d+))') );
ok( $r2->visual, '^(?:.*foo!\D*(\d+))' );
ok( $r2->qr, ~~qr/^(?:(?!.*foo)\D*(\d+))/ );

ok(
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/docs/Perl6/Overview/Operator.pod ( view source; MetaCPAN )

                            eq ne lt le gt ge
                            ~~ =:= === eqv
                            !== !~~ !eq !=:= !=== !eqv etc.
    tight and           &&
    tight or           
 equal to
    cmp       <=>   leg   # lt => -1, eq => 0, gt => +1
    ~~                    # smart match (see smartmatch)
    !~~                   # negated smart match

In general, any infix compar
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Net-IRC/lib/Net/IRC/SeenExt.pm ( view source; MetaCPAN )
method BUILD() {
  self.add_handler("PRIVMSG", -> $event {
    my $sent_to_a_chan = $event<object> ~~ rx:Perl5/^[#+&]/;
    
    # Only record if the message was sent to a channel.
    %!seen{self.nor
te => time,
      text => $event<rest>,
    } if $sent_to_a_chan;

    if $public and $event<rest> ~~ rx:Perl5/^\?seen\s+([^ ]+)/ {
      my $reply_to = $sent_to_a_chan ?? $event<object> !! $event<fro
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Log-Selective/lib/Log/Selective.pm ( view source; MetaCPAN )
$caller.package;
		$package ~~ s/.*\:\://;
		%tags{$package}=1;
	}
	
	@msg = ["Note: currently"] unless @msg;
	
	if $active eq any('all', keys %tags) {
		unless @msg[-1] ~~ /\n$/ {
			@msg.push(" at $
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/FindBin/lib/FindBin.pm ( view source; MetaCPAN )
 $?OS eq 'os2' );
    &readlink := { undef } if $dosish;

    unless ( ( $script ~~ m:P5 [/] || ( $dosish && $script ~~ m:P5 [\\] ) )
                && -f $script )
    {
        for File::Spec.path(
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Pod-Event-Parser/t/complex.t ( view source; MetaCPAN )
path);
for =$fh -> $line {
    $start = 1 if $line ~~ rx:perl5/^=pod/;
    if $start { $expected_output ~= "$line\n" }    
    $start = 0 if $line ~~ rx:perl5/^=cut/;    
}
$fh.close();
$expected_outp
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Automata-Cellular/t/rule.t ( view source; MetaCPAN )
ber<30>);

is($rule ~~ ::Automata::Cellular::Rule, Bool::True,  '$rule object instantiated');
is($rule.rule_number(), 30, '$rule rule_number set correctly');
is($rule.rule ~~ Hash, 1, '$rule.rule 
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/perl5/Pugs-Compiler-Rule/t/12-plain_regex.t ( view source; MetaCPAN )
er($match)};
    is( $match?1:0, 0, 'booleanify' );
    }
}

# <TimToady> ?eval "a\nb" ~~ /^a$$.^^b$/
# "a\nb" ~~ m:P5/(?smx) \A a $ . ^ b \z/

{
    my $rule = __PACKAGE__->compile( '^a$$.^^b$' );
  
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/File-Find/lib/File/Find.pm ( view source; MetaCPAN )
debug;
        my $dh = $dir.opendir;
        for $dh.readdir -> $node {
            next if $node ~~ m:P5/^(?:\.){1,2}$/;
            my $abs = catdir( $dir, $node );
            unless -d $abs {
   
= File::Find.new;
    $f.wanted_file = sub ( $file, $path, $pathfile ) {
        return 1 if $file ~~ m:P5/^.*\.pm$/;
    }
    $f.dirs = qw/lib/;
    my @files = $f.find;

    # debug attribute for s
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Automata-Cellular/lib/Automata/Cellular/Rule.pm ( view source; MetaCPAN )
      $rule_string ~= "{sprintf("%03b",$k)} becomes {+$v}\n";
        }
        $rule_string ~~ s:g/1/$true/;
        $rule_string ~~ s:g/0/$false/;
        return $rule_string;
    }

}
            
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/URI/lib/URI/Escape.pm ( view source; MetaCPAN )
        
        $pattern = ($negate) ?? "([^$unsafe])" !! "([$unsafe])";
        
        $string ~~ s:P5:g/$pattern/{ %escapes{$0} || fail_hi($0) }/;
        
        return $string;
    }
    
    
 }
    
#    multi sub uri_unescape ($str is copy) returns Str is export(:DEFAULT) {
#        $str ~~ s:P5:g/%([0-9A-Fa-f]{2})/{ chr(:16($0)) }/;
#        
#        return $str;
#    }
    
    multi 
WWW-Kontent ( B/BR/BRENTDAX/WWW-Kontent-0.02.tar.gz, BRENTDAX, 2005; MetaCPAN )
WWW-Kontent/WWW/Kontent/Path.pm ( view source; MetaCPAN )
ormat first.
        if $path ~~ s/ \{ (\w+) \} $// {
            $.mode   = ~$0;
        }
        else {
        	$.mode = 'view';
        }
        
        if $path ~~ s/ \. (\w+) $// {
          
ailing slash, if any.
        	$path ~~ s:g{^/|/$}{};
        	
        	# A leading [NUM] with no name indicates the root revision to use.
            if $path ~~ s{^ \[ (\d+) \] /?}{} {
            
f the path
        	if $path {
	            for split '/', $path -> $comp {
	                $comp ~~ /^ (\w+) [ \[ (\d+) \] ]? $/
	                	or WWW::Kontent::error("Invalid component '$comp'",
WWW-Kontent ( B/BR/BRENTDAX/WWW-Kontent-0.02.tar.gz, BRENTDAX, 2005; MetaCPAN )
WWW-Kontent/WWW/Kontent/Request.pm ( view source; MetaCPAN )
agepath.format}.new()
				unless $.renderer;
			$output=$.renderer.render($r);
		#};
		
		if    $! ~~ /^\[restart\]/ {
			if $depth < 8 {
				$r.go($depth+1);
			}
			else {
				$.status = 504;
				$.
ext/plain';
				return "Error: restart limit exceeded--possible restart loop";
			}
		}
		elsif $! ~~ /^\[(\d\d\d)\] (.*)/ {
			$.status = $0;
			$.type   = 'text/plain';
			return "Error: $1";
		}
		
ursor.parent;
				}
			}
		}
		
		my $pathobj=WWW::Kontent::Path.new().parse($path);
		
		if $path ~~ m{^/} {
			# Full path--just resolve from the root page.
			
			try { $pathobj.resolve($.root, $se
WWW-Kontent ( B/BR/BRENTDAX/WWW-Kontent-0.02.tar.gz, BRENTDAX, 2005; MetaCPAN )
WWW-Kontent/export_page.p6 ( view source; MetaCPAN )
or $rev.attributes.kv -> $k, $v is copy {
	$v ~~ s:perl5:g{\\}{\\\\};
	$v ~~ s:perl5:g{"}{\\"};
	$v ~~ s:perl5:g{\015}{};
	$v ~~ s:perl5:g{\n}{\\n};
	$v ~~ s:perl5:g{	}{\\t};
	
	say qq(    $k: "$v");
WWW-Kontent ( B/BR/BRENTDAX/WWW-Kontent-0.02.tar.gz, BRENTDAX, 2005; MetaCPAN )
WWW-Kontent/WWW/Kontent/Parser/Kolophon.pm ( view source; MetaCPAN )
ext = $origtext;
	say $ERR: "Parsing $origtext.chars() chars of text" if $PROGRESS;
	
	while $text ~~ $parser_regex {
		my($chunk, $tag)=(~$0, ~$1);
		my $length = "$0$1".chars;
		$pos += $length;
		
chunk.chars() literal chars followed by tag '$tag'" if $PROGRESS;
		
		if $chunk.chars {
			$chunk ~~ s:g{\s+}{ };
			@stack[-1].add_text($chunk);
		}
		given $tag {
			when "\\\\" {
				# nothing
			

	}
	
	if $text.chars {
		say $ERR: "	$text.chars() literal chars left over" if $PROGRESS;
		$text ~~ s:g{\s+}{ };
		$base.add_text($text);
	}
	return $base.children;
}

my sub do_list($skel, $type, $
Lingua-AlignmentSet ( P/PL/PLAMBERT/Lingua-AlignmentSet-1.1.tgz, PLAMBERT, 2007; MetaCPAN )
Lingua-AlignmentSet/AlignmentSet.pm ( view source; MetaCPAN )
   if ($format eq "latex"){print $outputFH $latex->endFile};
}

#only work if the text files are given (not only the alignment files).
sub getSize {
	my $alSet = shift;
	my ($file,$factor);
	my $size;
Perl6-Bible ( A/AU/AUTRIJUS/Perl6-Bible-0.30.tar.gz, AUTRIJUS, 2006; MetaCPAN )
Perl6-Bible/lib/Perl6/Bible/E06.pod ( view source; MetaCPAN )
 C<when> statement, because:

    when $is_sheep { push @sheep, $_ }

is equivalent to:

    if $_ ~~ $is_sheep { push @sheep, $_; next }

When C<$is_sheep> is a subroutine reference, that implicit sm
    my $context = want;
        if $context ~~ List {
            my @values = block();
            return { *@values };
        }
        elsif $context ~~ Scalar {
            my $value = block();
 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.