Group
Extension

Matches 1364

Telephone-Mnemonic-US ( I/IO/IOANNIS/Telephone-Mnemonic-US-0.07.tar.gz, IOANNIS, 2011; MetaCPAN )
Telephone-Mnemonic-US/lib/Telephone/Mnemonic/US/Number.pm ( view source; MetaCPAN )


sub to_digits {
	my $alphanum = lc shift;
	my $res;
      for (split //, $alphanum ) {
        given ( $_) {
            when (/[abc]/)   { $res .= '2'}
            when (/[def]/)   { $res .= '3'}
 
PGXN-Site ( D/DW/DWHEELER/PGXN-Site-v0.7.2.tar.gz, DWHEELER, 2011; MetaCPAN )
PGXN-Site/lib/PGXN/Site/Controller.pm ( view source; MetaCPAN )
Request->new($env);
    my $params = $req->query_parameters;
    my $q = $params->{q};

    if ($q ~~ [undef, '', '*', '?']) {
        # Just redirect if there is no search term.
        unless ($q) {
or{badrequest},
            vars => { param => 'q' },
        });
    }

    unless ($params->{in} ~~ ['', undef, qw(docs dists extensions users tags)]) {
        return $self->render('/badrequest', {
Thorium ( A/AF/AFLOTT/Thorium-0.510.tar.gz, AFLOTT, 2011; MetaCPAN )
Thorium/lib/Thorium/Types.pm ( view source; MetaCPAN )
 not valid Apache2 Listen directive syntax" };

subtype ApacheLogLevel,
    as Str,
    where { $_ ~~ @apache_log_levels },
    message { "$_ is not a valid Apache2 log level. Must be one of " . join(
USB-Descriptor ( B/BF/BFOZ/USB-Descriptor-4.tar.gz, BFOZ, 2011; MetaCPAN )
USB-Descriptor/lib/USB/HID/Descriptor/Report.pm ( view source; MetaCPAN )
iptor item
# Expects the tag name followed by the data bytes
sub item
{
    my $tag = shift;
    given($tag)
    {
	# Handle Main items
	when( 'collection' )
	{
	    my $type = shift;
	    push @_, $c
ize(@_)), @_);
}

# Return an item's type given its tag
sub item_type
{
    my $tag = shift;
    given( $tags{$tag} & 0x0C )
    {
	when( 0x00 ) { return 'main' }
	when( 0x04 ) { return 'global' }
	wh
USB-Descriptor ( B/BF/BFOZ/USB-Descriptor-4.tar.gz, BFOZ, 2011; MetaCPAN )
USB-Descriptor/lib/USB/HID/Report.pm ( view source; MetaCPAN )
$v = shift @{$_[0]};	# Field initializer
	    next unless USB::HID::Report::Field->can($k);
	    given( ref($v) )
	    {
		when('HASH')	{ push @fields, USB::HID::Report::Field->$k(%{$v});	}
		when('AR
Lingua-IT-Ita2heb ( A/AH/AHARONI/Lingua-IT-Ita2heb-0.01.tar.gz, AHARONI, 2011; MetaCPAN )
Lingua-IT-Ita2heb/lib/Lingua/IT/Ita2heb/LettersSeq/IT/ToHeb.pm ( view source; MetaCPAN )
ent});
    }
}

sub _to_add_in {
    my ($seq, $letters_aref) = @_;

    return ($seq->text_to_add ~~ $letters_aref);
}

{
    # Dagesh qal.
    # BET and PE must not change according to these rules i
perlfaq ( F/FL/FLORA/perlfaq-5.01500301.tar.gz, FLORA, 2011; MetaCPAN )
perlfaq/lib/perlfaq6.pod ( view source; MetaCPAN )
of regular expression objects:

	my @patterns = ( qr/Fr.d/, qr/B.rn.y/, qr/W.lm./ );

	if( $string ~~ @patterns ) {
		...
		};

The smart match stops when it finds a match, so it doesn't have to try
e
Lingua-IT-Ita2heb ( A/AH/AHARONI/Lingua-IT-Ita2heb-0.01.tar.gz, AHARONI, 2011; MetaCPAN )
Lingua-IT-Ita2heb/lib/Lingua/IT/Ita2heb/LettersSeq.pm ( view source; MetaCPAN )
x' is out of range.";
        }

        if (
            not $self->_letter($let_idx)
            ~~ @{ $sets_seq->[$i] })
        {
            return;
        }
    }

    return 1;
}

sub safe_mat
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/Exegesis/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-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/Exegesis/E03.pod ( view source; MetaCPAN )
/ @std_dirpath // '.';
        @dirpath ^=~ s{([^/])$}{$1/};

[Update: Hyper smartmatch is now C<»~~«>.]

        my %data;
        foreach my $prefix (@dirpath) {

[Update: Now spelled:

    for @d
any> Perl 6 subroutine. For
example:

    sub mean (*@values : $type //= 'arithmetic') {
        given ($type) {
            when 'arithmetic': { return sum(@values) / @values; }
            when 'geo
emantics.]

=item * 

binary C<**>

=item * 

binary C<=~> and C<!~>

[Update: Smartmatch is now C<~~>.]

=item * 

binary C<*>, C</>, and C<%>

=item * 

binary C<+> and C<->

=item * 

binary C<< <<
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/Synopsis/S29-functions.pod ( view source; MetaCPAN )
 Matcher

 subset Matcher of Mu where none(Bool)

Used to supply a test to match against. Assume C<~~> will be used against it.
Booleans are forbidden because they almost always indicate a programming
e { .signature === :(Any, Any --> Int ) };
 subset OrderingPair of Pair where { .left ~~ KeyExtractor && .right ~~ Comparator };

 subset Ordering where Signature | KeyExtractor | Comparator | Orderin
against a type, you're likely better off
performing an C<isa> or C<does> or C<can>, or just C<$var ~~ TYPE>.

=item reset

Was there a I<good> use for this?

=item semctl, semget, semop

See IPC::SysV
Perl6-Doc ( H/HI/HINRIK/Perl6-Doc-0.47.tar.gz, HINRIK, 2010; MetaCPAN )
Perl6-Doc/share/Exegesis/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();
 
Catalyst-Helper-DBIC-DeploymentHandler ( R/RS/RSRCHBOY/Catalyst-Helper-DBIC-DeploymentHandler-0.001.tar.gz, RSRCHBOY, 2011; MetaCPAN )
Catalyst-Helper-DBIC-DeploymentHandler/lib/Catalyst/Helper/DBIC/DeploymentHandler.pm ( view source; MetaCPAN )
b help {
say <<'OUT';
usage:
  install
  upgrade
  current-version
OUT
}

help unless $ARGV[0];

given ( $ARGV[0] ) {

    when ('install')         { install()         }
    when ('prepare-install') {
perlfaq ( F/FL/FLORA/perlfaq-5.01500301.tar.gz, FLORA, 2011; MetaCPAN )
perlfaq/lib/perlfaq7.pod ( view source; MetaCPAN )
tatement?

In Perl 5.10, use the C<given-when> construct described in L<perlsyn>:

	use 5.010;

	given ( $string ) {
		when( 'Fred' )        { say "I found Fred!" }
		when( 'Barney' )      { say "I fo
XML-Assert ( C/CH/CHILTS/XML-Assert-0.03.tar.gz, CHILTS, 2010; MetaCPAN )
XML-Assert/lib/XML/Assert.pm ( view source; MetaCPAN )
is node's value : " . $node->string_value() . "\n" if $VERBOSE;
    unless ( $node->string_value() ~~ $match ) {
        die "XPath '$xpath' doesn't match '$match' as expected, instead it is '" . $nod
ode's value : " . $node->string_value() . "\n" if $VERBOSE;
        unless ( $node->string_value() ~~ $match ) {
            die "Elment $i of XPath '$xpath' doesn't match '$match' as expected, instea
 "assert_xpath_value_match: This attr's value : " . $value . "\n" if $VERBOSE;
    unless ( $value ~~ $match ) {
        die "XPath '$xpath', attribute '$attr' doesn't match '$match' as expected, inst
MooseX-amine ( G/GE/GENEHACK/MooseX-amine-0.3.tar.gz, GENEHACK, 2011; MetaCPAN )
MooseX-amine/lib/MooseX/amine.pm ( view source; MetaCPAN )
ate_attributes;
  }

  my $meta_attr = $meta->get_attribute( $attribute_name );

  my $return;
  given ( ref $meta_attr ) {
    when( 'Moose::Meta::Role::Attribute' ) {
      $return = $meta_attr->ori
f->include_standard_methods ) {
    my @STOCK = qw/ DESTROY meta new /;
    return if $method_name ~~ @STOCK;
  }

  my $extracted_method =  $self->_extract_method_metainfo( $meta_method );
  $self->_
Cheat-Meta ( X/XI/XIONG/developer-tools/Cheat-Meta-v0.0.5.tar.gz, XIONG, 2011; MetaCPAN )
Cheat-Meta/lib/Cheat/Sheet/Test.pod ( view source; MetaCPAN )
required if ACC is array, otherwise omit
        use Test::More tests => 9;                      # ~~ Test::More::*
        $trap->ACC_ok       ( $ix, $name );             #              ok()
        
SQL-Beautify ( J/JK/JKRAMER/SQL-Beautify-0.04.tar.gz, JKRAMER, 2011; MetaCPAN )
SQL-Beautify/lib/SQL/Beautify.pm ( view source; MetaCPAN )



# Check if a token is a known SQL keyword.
sub _is_keyword {
	my ($self, $token) = @_;

	return ~~ grep { $_ eq uc($token) } @{$self->{keywords}};
}


# Add new keywords to highlight.
sub add_keywo
Test-Magic ( A/AS/ASG/Test-Magic-0.21.tar.gz, ASG, 2010; MetaCPAN )
Test-Magic/lib/Test/Magic.pm ( view source; MetaCPAN )
ert{$op}
                                                       or $op eq '~~';
        bless do {
            ($op eq '~~' or
            ($op =~ /[!=]=/ and ref $expect eq ref qr//))
          
,   # == is overloaded when rhs is a regex
      is 'abcd' ~~ q/bc/,    # ~~ can be used with a string rhs in perl 5.10+
      is 'badc' ~~ q/bc/;

    test 'data structures',
      is [1, 2, 3] 
Hobocamp ( A/AF/AFLOTT/Hobocamp-0.600.tar.gz, AFLOTT, 2011; MetaCPAN )
Hobocamp/lib/Hobocamp/Role/Widget.pm ( view source; MetaCPAN )
lt();
}

before 'run' => sub {
    my ($self) = @_;

    return unless ($self->auto_scale);

    given (Scalar::Util::blessed($self)) {
        when ('Hobocamp::Menu') {
            $self->menu_height

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