Group
Extension

Matches 1364

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/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(
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/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/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, $
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
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();
 
Perl6-Bible ( A/AU/AUTRIJUS/Perl6-Bible-0.30.tar.gz, AUTRIJUS, 2006; MetaCPAN )
Perl6-Bible/lib/Perl6/Bible/E07.pod ( view source; MetaCPAN )
              |
    |-----------------------------------|
    | ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< |~~
      $comments,
     ===================================
    .

    write STDOUT;


in Perl 6 we 
har><1,$width>) /;

            # Squeeze the resultant substring...
            (my $result = $1) ~~ s:each/ <$ws> | \v+ /\c[SPACE]/;

            # Check for any more data still to come...
         
r:

    sub expurgate (Str *@hidewords) {
        return sub (Str $data is rw) {
            $data ~~ s:ei/(@hidewords)/$( 'X' x length $1 )/;
            return $data;
        }
    }

We could then 
Perl6-Bible ( A/AU/AUTRIJUS/Perl6-Bible-0.30.tar.gz, AUTRIJUS, 2006; MetaCPAN )
Perl6-Bible/lib/Perl6/Bible/S03.pod ( view source; MetaCPAN )
=item * C<=~> becomes the "smart match" operator C<~~>, with a whole new set
of semantics.  Anywhere you used C<=~> before you now use C<~~>, but C<~~> is
much more general now.  See L<Synopsis 4> for
<=~> >> macro which always fails at
compile time with a message directing the user either to use C<~~> or C<~=> instead,
or to put a space between if they really wanted to assign a stringified value.)
smartmatches the
endpoints in the domain of the object being matched, so C<< 1.5 ~~
1^..^2 >> is true.  (But C<< 2.1 ~~ 1..2 >> is false.)

=item * The unary C<^> operator generates a range from C<0> 
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/libwww-perl/lib/HTTP/Request/CGI.pm ( view source; MetaCPAN )
= %*ENV<QUERY_STRING> // %*ENV<REDIRECT_QUERY_STRING>;
            
            if ($.query_string ~~ /<[;&=]>/) {
                $.query.parse_params($.query_string);
            } else {
          
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/WTemplate/lib/WTemplate.pm ( view source; MetaCPAN )
les);
}

sub fill_with($template: %variables?) is export {
    my $return = $template;
    $return ~~ s:g! <elem> | <block> !{ run_widget($/, %variables) }!;
    return $return;
}

## some basic widge
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Test/t/3-output.t ( view source; MetaCPAN )
in32 mingw msys cygwin> {
    $redir_pre = ">";
    $redir_post = "";
};

my $file = $?FILE;
$file ~~ s:P5/output.t/script.pl/;
my $cmd = "$*EXECUTABLE_NAME $file $redir_pre $out_fn $redir_post";
%*EN
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Set/t/operations.t ( view source; MetaCPAN )
4,5,6));
is($union.WHAT, Set, "set() - union");

my $stringified = $set.stringify;
ok($stringified ~~ rx:perl5/^set\(.*Person.*\)$/, "stringify");

ok($union.equal(set(0..6, $bob)), "set() - equal");
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Rosetta/examples/shell.pl ( view source; MetaCPAN )
use v6-alpha;

use Rosetta::Shell;

my Str @cmd_line_args = @*ARGS.grep:{ $_ ~~ m/^<[a-zA-Z:_]>+$/ };
my ($engine_name, @user_lang_prefs) = @cmd_line_args;

$engine_name //= 'Rosetta::Engine::Example'
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Perl-Compiler/lib/Perl/Compiler/PIL/Util.pm ( view source; MetaCPAN )
IL::Util::Pad $.parent;
    has Str @.names;

    method lookup_pad($name) {
        if (grep { $_ ~~ $name }, @.names) {
            self;
        }
        else {
            $.parent ?? $.parent.lo
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Math-Random-Kiss/t/rand.t ( view source; MetaCPAN )
Kiss;

=cut

my $RAND = Math::Random::Kiss.new();

ok($RAND, 'new() Math::Random::Kiss');
ok($RAND ~~ Rand, 'Math::Random::Kiss does Rand');

ok($RAND.rand() >= 0, 'rand() returns numbers greater than
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/10re_tests.t ( view source; MetaCPAN )
d	y	$&	ab
a(?{"{"}})b	-	c	-	Unmatched right curly bracket
a(?{$bl="\{"}).b	caxbd	y	$bl	{
x(~~)*(?:(?:F)?)?	x~~	y	-	-
^a(?#xxx){3}c	aaac	y	$&	aaac
'^a (?#xxx) (?#yyy) {3}c'x	aaac	y	$&	aaac
(?<![cd])b	d
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/Perl-MetaModel/lib/List.pm ( view source; MetaCPAN )
unction $test ; *@values) returns List {
   gather {
     for @values -> $x {
       take $x if $x ~~ $test;
     }
   }
 }

 multi sub join (Str $delimiter ; *@values) returns List {
   my $str = ~@v
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Text-Glob/t/02_glob_to_regex.t ( view source; MetaCPAN )
use v6-alpha;
use Test;

plan 1;

use Text::Glob;

my $regex = Text::Glob.new.glob_to_regex('*.pm');
ok 'Glob.pm' ~~ $regex, 'glob_to_regex works';
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Cipher/lib/Cipher/Caesar.pm ( view source; MetaCPAN )
% 26];
            @.table[@lower[$_]] = @lower[($_ + $shift) % 26];
        }
    }

    if $mode ~~ m:P5:i/^de/ {
        my @tt;
        for @.table.kv { @tt[$^value] = $^key }
        @.table = @t

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