Group
Extension

Matches 1357

Tapper-Reports-Web ( A/AM/AMD/Tapper-Reports-Web-4.1.0.tar.gz, AMD, 2012; MetaCPAN )
Tapper-Reports-Web/lib/Tapper/Reports/Web/Controller/Tapper/Reports/Id.pm ( view source; MetaCPAN )
get_report_failures
{
        my ($self, $report) = @_;

        return $report->get_cached_tapdom ~~ dpath '//tap//lines//is_ok[value eq 0]/..';
}

sub index :Path :Args(1)
{
        my ( $self, $c, 
Dist-Zilla-PluginBundle-Prereqs ( B/BB/BBYRD/Dist-Zilla-PluginBundle-Prereqs-0.92.tar.gz, BBYRD, 2012; MetaCPAN )
Dist-Zilla-PluginBundle-Prereqs/lib/Dist/Zilla/Plugin/PrereqsClean.pm ( view source; MetaCPAN )
 (my $main_module = $distro) =~ s/-/::/g;
         $main_module = $modules[0] unless ($main_module ~~ @dmods);
         
         # remove any obvious split potentials
         if ($self->removal_leve
Tapper-Notification ( A/AM/AMD/Tapper-Notification-4.1.0.tar.gz, AMD, 2012; MetaCPAN )
Tapper-Notification/lib/Tapper/Notification.pm ( view source; MetaCPAN )
 $lookback tests did not have the same success state
                return 0 if not $this_success ~~ $success;
        }
        my $testrun_success = get_testrun_success($testrun->{id});

        re
 condition
#
# =cut
#
# sub matches
# {
#         my ($self, $condition, $event) = @_;
#         given($event->type){
#                 when ('testrun_finished') {
#                         $testrun  
   return  $success;
# }
#



sub matches
{
        my ($self, $condition, $event) = @_;
        given($event->type){
                when ('testrun_finished') {
                        $testrun      
Tapper-MCP ( A/AM/AMD/Tapper-MCP-4.1.0.tar.gz, AMD, 2012; MetaCPAN )
Tapper-MCP/lib/Tapper/MCP/State.pm ( view source; MetaCPAN )
te;
        my $keep_alive_timeout_date = $self->state_details->keep_alive_timeout_date;
        given ($self->state_details->current_state){
                when(['invalid', 'finished', 'started']){ 
f ( $installer_timeout_date <= $now) {
                my $msg = 'timeout hit ';
                given ($self->state_details->current_state){
                        when ('started')        { $msg .= 
or => 1,
                               msg   => "Timeout in PRC $prc_number "};
                given($self->state_details->prc_state($prc_number)){
                        when ('boot'){
           
Perl-Achievements ( Y/YA/YANICK/Perl-Achievements-0.4.0.tar.gz, YANICK, 2012; MetaCPAN )
Perl-Achievements/lib/Perl/Achievements/Achievement/SchwartzianTransform.pm ( view source; MetaCPAN )
->isa('PPI::Token::Word')                #   the tokens
                        and $_[1]->literal ~~ [ 'map', 'grep', 'sort' ]   #   'map' and 'sort' ('grep' doesn't hurt here and you could
         
I::Token::Word')             #   you could watch out for more
                  and $_[1]->literal ~~ [ 'map', 'sort' ]  #   'grep', 'uniq', ...
            }
        )
      } or return;

    $self->
DBICx-Backend-Move ( C/CA/CALDRIN/DBICx-Backend-Move-1.000010.tar.gz, CALDRIN, 2012; MetaCPAN )
DBICx-Backend-Move/lib/App/DBICx/Backend/Move.pm ( view source; MetaCPAN )
($opt->{to_dsn})    or die "Can't parse DBI DSN '$opt->{from_dsn}'";
        my $module;
        given (lc($driver)) {
                when ('sqlite') { $module='DBICx::Backend::Move::SQLite' };
     
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/man_pages/perlreintro.pod ( view source; MetaCPAN )
f, but how do we apply these rules to a string other than C<$_>?
We use the smart match operator C<~~>.  This operator is called "smart
match" because it does quite a bit more than just apply regular

expression against the string contained in a variable called C<$foo>,
we'd do this:

        $foo ~~ / <regex here> /;

There's a more general syntax that allows the author to choose
different delimi
h the
C</> character and you don't feel like writing C<\/> so much:

        $foo ~~ m/ <regex here> /;
        $foo ~~ m! <regex here> !;      # different delimiter

=head3 Modifiers

The more genera
PICA-Modification ( V/VO/VOJ/PICA-Modification-0.16.tar.gz, VOJ, 2012; MetaCPAN )
PICA-Modification/lib/PICA/Modification/Queue.pm ( view source; MetaCPAN )
w(reftype);

sub new {
    my $class = shift;
    my $name  = shift || 'hash';
    
    if ('HASH' ~~ reftype($name)) {
        my $args = $name;
        $name = delete $name->{type};
        return $
Test-Vars ( G/GF/GFUJI/Test-Vars-0.002.tar.gz, GFUJI, 2012; MetaCPAN )
Test-Vars/lib/Test/Vars.pm ( view source; MetaCPAN )
my $p(@{$pad}){
            next if !( defined $p && !$p->{outside} );

            if($p->{count} ~~ 0){
                next if $args->{ignore_vars}{$p->{name}};

                if(my $cb = $args->
makepp ( P/PF/PFEIFFER/makepp-2.0.98.2.tgz, PFEIFFER, 2012; MetaCPAN )
makepp/pod/makepp_functions.pod ( view source; MetaCPAN )
differs from patsubst
in that it will perform correctly when alternate names for directories are
given (as long as they precede the percent sign).  For example,

    $(filesubst ./src/%.c, %.o, $(wild
Tapper-Cmd ( A/AM/AMD/Tapper-Cmd-4.1.0.tar.gz, AMD, 2012; MetaCPAN )
Tapper-Cmd/lib/Tapper/Cmd/Testplan.pm ( view source; MetaCPAN )

use parent 'Tapper::Cmd';



sub get_module_for_type
{
        my ($self, $type) = @_;
         given (lc($type)){
                when('multitest') { return "Tapper::Cmd::Testrun"; }
               
makepp ( P/PF/PFEIFFER/makepp-2.0.98.2.tgz, HOLT, 2012; MetaCPAN )
makepp/Makesubs.pm ( view source; MetaCPAN )
ers from patsubst
# in that it will perform correctly when alternate names for directories are
# given (as long as they precede the percent sign).  For example,
#
#  $(filesubst ./src/%.c, %.o, $(wild
makepp ( P/PF/PFEIFFER/makepp-2.0.98.2.tgz, PFEIFFER, 2012; MetaCPAN )
makepp/Mpp/Subs.pm ( view source; MetaCPAN )
ers from patsubst
# in that it will perform correctly when alternate names for directories are
# given (as long as they precede the percent sign).  For example,
#
#  $(filesubst ./src/%.c, %.o, $(wild
EBook-Tools ( A/AZ/AZED/EBook-Tools-v0.4.9.tar.gz, AZED, 2012; MetaCPAN )
EBook-Tools/lib/EBook/Tools.pm ( view source; MetaCPAN )
# This is much simpler with the ~~ operator, but Perl 5.10
    # features are being avoided until 5.10 is standard both on MacOSX
    # and Debian
    # Note that the ~~ operator only checks keys of h
ashes, not values
#    unless(%atts1 ~~ %atts2)
    unless($attkeys1 eq $attkeys2)
    {
        debug(3,"  elements have different attributes");
        return 0;
    }

    foreach my $att (keys %at
WebService-XING ( G/GR/GRAF/WebService-XING-0.030.tar.gz, GRAF, 2012; MetaCPAN )
WebService-XING/lib/WebService/XING.pm ( view source; MetaCPAN )
>access_token,
            token_secret => $self->access_secret,
        );
    }

    if ($method ~~ ['POST', 'PUT']) {
        my $u = URI->new('http:');
        if (@args) {
            push @extra
sanity ( B/BB/BBYRD/sanity-0.94.tar.gz, BBYRD, 2012; MetaCPAN )
sanity/lib/sanity.pm ( view source; MetaCPAN )
?$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 {
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/man_pages/perlsyn.pod ( view source; MetaCPAN )
    }
        default {
            die q(I don't know what to do with $foo);
        }
    }

C<given(EXPR)> will assign the value of EXPR to C<$_>
within the lexical scope of the block, so it's simi
he power comes from implicit smart matching:

    when $foo

is exactly equivalent to

    when $_ ~~ $foo

In fact C<when EXPR> is treated as an implicit smart match most of the
time. The exceptions 
ral array
or hash as the argument to C<when>, it is turned into a
reference. So C<given(@foo)> is the same as C<given(\@foo)>,
for example.

C<default> behaves exactly like C<when True>, which is
to s
Thrift-Parser ( E/EW/EWATERS/Thrift-Parser-0.06.tar.gz, EWATERS, 2012; MetaCPAN )
Thrift-Parser/lib/Thrift/Parser/Type/Container.pm ( view source; MetaCPAN )
 $value = $list->index(0);
  my ($key, $value) = $map->index(0);

Returns the value at the index given (zero starting).  Returns a list if a map type.  Returns undef or () if not present.  Throws L<Th
Bot-Cobalt-DB-Term ( A/AV/AVENJ/Bot-Cobalt-DB-Term-0.001.tar.gz, AVENJ, 2012; MetaCPAN )
Bot-Cobalt-DB-Term/lib/Bot/Cobalt/DB/Term.pm ( view source; MetaCPAN )
args) = parse_line('\s+', 0, $cmd);
      next PROMPT unless $thiscmd;
      unless ( lc($thiscmd) ~~ 
        [ qw/h help q quit open create freeze thaw/ ]
      ) {
        unless ( $self->_get_curr
 ( index($args[0], '--') == 0 ) {
    my $f_opt = shift @args;
    substr($f_opt, 0, 2, '');
    given (lc($f_opt//'')) {
      $format = 'YAMLXS' when "yaml";
      $format = 'YAML'   when "syck";
  
 ( index($args[0], '--') == 0 ) {
    my $f_opt = shift @args;
    substr($f_opt, 0, 2, '');
    given (lc($f_opt//'')) {
      $format = 'YAMLXS' when "yaml";
      $format = 'YAML'   when "syck";
  
App-LDAP ( S/SH/SHELLING/App-LDAP-0.1.0.tar.gz, SHELLING, 2012; MetaCPAN )
App-LDAP/lib/App/LDAP/Config.pm ( view source; MetaCPAN )
) = @_;
    return if $line =~ /(^#|^\n)/;

    my ($key, $value) = split /\s+/, $line;
    $self->{$key} = ( 
        $key ~~ @has_scope ? 
        [split /\?/, $value] :
        $value
    );
}

1;

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