Group
Extension

Matches 1310

Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/HTML-Entities/lib/HTML/Entities.pm ( view source; MetaCPAN )
$string;
    
    $result ~~ s:Perl5:g/&\#(\d+);?/{chr($0)}/;
    $result ~~ s:Perl5:g/(&\#[xX]([0-9a-fA-F]+);?)/{my $c = :16($1); $c < 256 ?? chr($c) !! $0}/;
    $result ~~ s:Perl5:g/(&(\w+);?)/{%en
code\n "
        #    ) if $!;
        #}
        #%subst{$unsafe_chars}($string);
        $result ~~ s:Perl5:g/([$unsafe_chars])/{
            %char_to_entity.exists($0)
                ?? %char_to_e
}
    else {
        # Encode control chars, high bit chars and '<', '&', '>', '"'
        $result ~~ s:perl5:g/([^\n\r\t !\#\$%\'-;=?-~])/{
            %char_to_entity.exists($0)
                ?? %
InSilicoSpectro ( A/AL/ALEXMASS/InSilicoSpectro-1.3.24.tar.gz, ALEXMASS, 2008; MetaCPAN )
InSilicoSpectro/lib/InSilicoSpectro/InSilico/Peptide.pm ( view source; MetaCPAN )
difier: sets modifications if $modif, a reference to vector of modification
names or a string is given (see Pheny::InSilico::MassCalculator::variablePeptide function for instance),
returns a reference
InSilicoSpectro ( A/AL/ALEXMASS/InSilicoSpectro-1.3.24.tar.gz, ALEXMASS, 2008; MetaCPAN )
InSilicoSpectro/lib/InSilicoSpectro/InSilico/AASequence.pm ( view source; MetaCPAN )
difier: sets modifications if $modif, a reference to vector of modification
names or a string is given (see Pheny::InSilico::MassCalculator::variablePeptide function for instance),
returns a reference
Sub-SmartMatch ( N/NU/NUFFIN/Sub-SmartMatch-0.02.tar.gz, NUFFIN, 2008; MetaCPAN )
Sub-SmartMatch/lib/Sub/SmartMatch.pm ( view source; MetaCPAN )
riants;

		my $sub = sub {
			given ( \@_ ) {
				foreach my $variant ( @variants ) {
					my ( $partial, $case, $body ) = @$variant;

					if ( $partial ) {
						given ( [ @_[0 .. $#$case] ] ) {
			
@variants ) {
	   	my ( $case, $body ) = splice(@variants, 0, 2);

		if ( not ref($case) and $case ~~ 'default' ) {
			multi_default $name, $body;
		} else{
			multi $name, $case, $body;
		}
	}
}

__P
MooseX-Struct ( J/JS/JSOVERSON/MooseX-Struct-0.06.tar.gz, JSOVERSON, 2008; MetaCPAN )
MooseX-Struct/lib/MooseX/Struct.pm ( view source; MetaCPAN )
ally come from 'use Moose' are exported to the specified package,
or the current package if none given (unless the current package is 'main').

A lot of this package passes off work to L<Moose> and L<
URI-http-Dump ( E/EC/ECARROLL/URI-http-Dump-0.03.tar.gz, ECARROLL, 2008; MetaCPAN )
URI-http-Dump/lib/URI/http/Dump.pm ( view source; MetaCPAN )
no strict;
no warnings;
use feature ':5.10';

sub default_port {
	my $self = shift;

	my $port;
	given ( $self->scheme ) {
		when ( 'http' ) { $port=80 }
		when ( 'https' ) { $port=443 }
	}

	$port;

DashProfiler ( T/TI/TIMB/DashProfiler-1.13.tar.gz, TIMB, 2008; MetaCPAN )
DashProfiler/lib/DashProfiler/Sample.pm ( view source; MetaCPAN )
r
refered to by the 'C<_dash_profile>' element of %$meta is marked as 'in use'
then a warning is given (just once) and C<new> returns undef, so no sample is
taken.

If $allow_overlap is true, then ove
libwin32 ( J/JD/JDB/libwin32-0.29.tar.gz, GSAR, 2008; MetaCPAN )
libwin32/Sound/Sound.pm ( view source; MetaCPAN )
ctly C<Play()> it.

The second (and third) form opens the
wave output device with the format given
(or if none given, defaults to 44.1kHz,
16 bits, stereo); to produce something
audible you can 
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/libwww-perl/t/getprint.t ( view source; MetaCPAN )
est = =$hdl;
      $request ~~ s:P5/\s+$//;
      #diag $request;
      if ($request ~~ rx:P5"^GET /stop-server/") {
        last();
      };

      while (readline($hdl) ~~ rx:P5/\S/) { 1 };
      $h
-)
#  threads while running an external command)

for @urls -> $t_url {
  my $url = $t_url;
  $url ~~ s:perl5/%s/$base_url/;
  my $inc = map {qq! "-I$_"!}, @*INC;

  # Will block forever
  # my $outpu
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/old_pugs_perl5_backend/Perl6-MetaModel/t/08_multi_methods.t ( view source; MetaCPAN )
     "~~" . $::CLASS->name . "~~";
            }                
        }
    };

    my $pp = $PrettyPrinter->new();
    isa_ok($pp, 'PrettyPrinter');


    is($pp->pretty(), '~~PrettyPrinter~~', '.
  is(
        $pp->pretty({ array => [ \1, \'two', $pp ] }), 
        '{ array => [ 1, two, ~~PrettyPrinter~~ ] }', 
        '... recursive multi-methods');     

}

{
    my $PrettyPrinter2 = class '
ty = ::multi_sub 'PrettyPrinter2::pretty' => ('PrettyPrinter2') => sub { 
            "~~" . $::CLASS->name . "~~";
        };        
    
        $::CLASS->add_method('pretty' => ::make_method($pret
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Pod-Event-Parser/lib/Pod/Event/Parser.pm ( view source; MetaCPAN )
ne = $fh.readline;
        last unless $line.defined; # exit as soon as possible
        if ($line ~~ rx:P5/^=pod/) {
            $is_parsing = 1;
            %events<start_document>();
        }
    
efined($_line)             && 
                              !($_line ~~ rx:P5/^$/)  && 
                                $_line ~~ rx:P5/^\s(.*?)$/ ) {                                
                
                while (defined($_line)             && 
                                   !($_line ~~ rx:P5/^$/) ) {
                                interpolate($_line, %events);
                     
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/src/PIL/misc/prelude/Array.pm ( view source; MetaCPAN )
 *@indextests --> Int|List )
{
    my @ret;
    for @array.kv -> ($k, $v) {
	push(@ret, $k ) if $k ~~ any(@indextests);
    }
    @ret; # want Item ?? +@ret !! *@ret;
}
# signature from S29draft.pod r
ests --> Int|List )
{
    my @ret;
    for @array.keys -> $k {
	push(@ret, ($k,@array[$k]) ) if $k ~~ any(@indextests);
    }
    @ret; # want Item ?? +@ret !! *@ret;
}
# signature from S29draft.pod r
 *@indextests )
{
    my @ret;
    for @array.keys -> $k {
	push(@ret, Pair($k,@array[$k]) ) if $k ~~ any(@indextests);
    }
    @ret; # want Item ?? +@ret !! *@ret;
}
# signature from S29draft.pod r
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/docs/talks/perl6-apw2005/code/op/smart1.pl ( view source; MetaCPAN )
Perl 6: generalisierter Smart-Match-Operator
$s ~~ 1978;
$s ~~ "Hallo, Welt";
$s ~~ /regex/;
$s !~ funktion();
#=Alles zusammen: (änlich wie any)
$s ~~ (123, funktion, /regex/)
($a, $b, $c) !~ ($d, $
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/pX/Aside/value_types_numeric.pm ( view source; MetaCPAN )
e($n) {
  'subset  int'~$n~' of ValueType where { $^n ~~ Int and -2**'~$n~' <= $^n <  2**'~$n~' };
   subset uint'~$n~' of ValueType where { $^n ~~ Int and      0     <= $^n <= 2**'~$n~' };'
}
Clutter
ize($n) {
  'subset num'~$n~'     of ValueType where { $^n ~~ Num and ...XXXfill in... };
   subset complex'~$n~' of ValueType where { $^n ~~ Num and ...XXXfill in... };'
}
Clutter::num_size 32;
Clutt
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/libwww-perl/lib/HTTP/Response.pm ( view source; MetaCPAN )
 { }
    
    method parse (Str $str is copy) {
        my $status_line;
        
        if ($str ~~ s/^(.*)\n//) {
            $status_line = $0;
        } else {
            $status_line = $str;
  
elf = self.SUPER::parse($str);
        
        given ($self) {
            my ($protocol, $code, $message);
            
            if ($status_line ~~ /^\d**{3}/) {
                # Looks like a r
              # HTTP/1.0
        
        require URI;
        
        if ($base.defined && $base ~~ /^ <URI::scheme> \:/) {
            # already absolute
            return $HTTP::URI_CLASS.new($ba
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/pX/Common/lrep/iterator_engine.pl ( view source; MetaCPAN )
 ~~ m/^(\Q$const\E)(.*)/s;
        # return unless @_[0] ~~ perl5:m:s:/^(\Q$const\E)(.*)/;
        # return unless @_[0] ~~  /^ ( $const )(.*)/;  # (putter on #perl6)
        # return unless @_[0] ~~ 
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/ext/Kwid-Event-Parser/lib/Kwid/Event/Parser.pm ( view source; MetaCPAN )
ne = $fh.readline;
        last unless $line.defined; # exit as soon as possible
        if ($line ~~ rx:P5/^=kwid/) {
            $is_parsing = 1;
            %events<start_document>();
        }
   
fined($_line)             && 
                              !($_line ~~ rx:P5/^\n$/)  && 
                                $_line ~~ rx:P5/^\s(.*?)$/ ) {                                
               
                while (defined($_line)             && 
                                   !($_line ~~ rx:P5/^\n$/) ) {
                                interpolate($_line, %events);
                   
Perl6-Pugs ( A/AU/AUDREYT/Perl6-Pugs-6.2.13.tar.gz, AUDREYT, 2006; MetaCPAN )
Perl6-Pugs/misc/pX/fglock/Rule.pl ( view source; MetaCPAN )
 ~~ m/^(\Q$const\E)(.*)/s;
        # return unless @_[0] ~~ perl5:m:s:/^(\Q$const\E)(.*)/;
        # return unless @_[0] ~~  /^ ( $const )(.*)/;  # (putter on #perl6)
        # return unless @_[0] ~~ 
Text-GooglewikiFormat ( F/FA/FAYLAND/Text-GooglewikiFormat-0.05.tar.gz, FAYLAND, 2007; MetaCPAN )
Text-GooglewikiFormat/lib/Text/GooglewikiFormat.pm ( view source; MetaCPAN )
to HTML

=head1 SYNOPSIS

    use Text::GooglewikiFormat;
    my $raw  = '*bold* _italic_ ~~strike~~';
    my $html = Text::GooglewikiFormat::format($raw);
    # $html is qq~<p><strong>bold</st
App-TemplateServer ( J/JR/JROCKWAY/App-TemplateServer-0.04.tar.gz, JROCKWAY, 2008; MetaCPAN )
App-TemplateServer/lib/App/TemplateServer.pm ( view source; MetaCPAN )
$var (keys %{$to_instantiate||{}}){
            my $class = $to_instantiate->{$var};
            given(ref $class){
                when('HASH'){
                    my ($package, $method) = %$class;
 exit; # exit child
        }
    }
};

method _req_handler($req) {
    my $res = eval {
        given($req->uri){
            when(m{^/(?:index(?:[.]html?)?)?$}){
                return $self->_rende

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