Result:
found 1210 distributions and 1947 files matching your query ! ( run in 3.517 )


Dist-Zilla-Plugin-Acme-CPANLists

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Acme/CPANLists.pm  view on Meta::CPAN

sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name; $class =~ s{ [\-] }{::}gmx;
   my $filename = $self->zilla->_main_module_override ||
       catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

   $filename or die 'No main module specified';
   -f $filename or die "Path ${filename} does not exist or not a file";
   open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-Acme-CPANModules

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Acme/CPANModules.pm  view on Meta::CPAN

sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name; $class =~ s{ [\-] }{::}gmx;
   my $filename = $self->zilla->_main_module_override ||
       catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

   $filename or die 'No main module specified';
   -f $filename or die "Path ${filename} does not exist or not a file";
   my $abstract = $self->_get_abstract_from_list_summary($filename);
   return unless $abstract;

 view all matches for this distribution


Dist-Zilla-Plugin-Bencher-Scenario

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Bencher/Scenario.pm  view on Meta::CPAN

sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $name; $class =~ s{ [\-] }{::}gmx;
    my $filename = $self->zilla->_main_module_override ||
        catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

    $filename or die 'No main module specified';
    -f $filename or die "Path ${filename} does not exist or not a file";
    open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-Data-Sah-Coerce

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Data/Sah/Coerce.pm  view on Meta::CPAN

sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $name; $class =~ s{ [\-] }{::}gmx;
    my $filename = $self->zilla->_main_module_override ||
        catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

    $filename or die 'No main module specified';
    -f $filename or die "Path ${filename} does not exist or not a file";
    #open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-Data-Sah-Filter

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Data/Sah/Filter.pm  view on Meta::CPAN

sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $name; $class =~ s{ [\-] }{::}gmx;
    my $filename = $self->zilla->_main_module_override ||
        catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

    $filename or die 'No main module specified';
    -f $filename or die "Path ${filename} does not exist or not a file";
    #open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-Docker-API

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Docker/API/Client.pm  view on Meta::CPAN

    my ($self, $image_ref) = @_;

    # Strip ":tag" or "@sha256:..." suffix from the image part.
    my $name = $image_ref;
    $name =~ s/\@sha256:.*$//;
    my @parts = split m{/}, $name;

    # If the first component does NOT look like a registry host
    # (no dot, no colon, not "localhost"), it's an implicit Docker Hub repo.
    if (@parts < 2 || ($parts[0] !~ /[.:]/ && $parts[0] ne 'localhost')) {
        return 'https://index.docker.io/v1/';

 view all matches for this distribution


Dist-Zilla-Plugin-InsertExample-FromMojoTemplates

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/InsertExample/FromMojoTemplates.pm  view on Meta::CPAN


            my $what = $2;
            $what =~ s{ }{}g;
            $what =~ s{,,+}{,}g;

            my @configs = split m/,/ => $what;
            my @wanted = ();
            my @unwanted = ();
            my $all = 0;
            my $want_all_examples = 0;

 view all matches for this distribution


Dist-Zilla-Plugin-JSAN

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/JSAN/Shotenjin.pm  view on Meta::CPAN


    my @params;

    foreach my $entry (keys(%copy)) {
        
        my %options = map { $_ => 1 } (split m/,/, $copy{ $entry });
        
        my $keep_whitespace = $options{ kw }        || $options{ keep_whitespace };
        my $cwd_as_base     = $options{ absolute }  || $options{ cwd_as_base };
        
        push @params, { regex => qr/$entry/, keep_whitespace => $keep_whitespace, cwd_as_base => $cwd_as_base };

 view all matches for this distribution


Dist-Zilla-Plugin-MapMetro-MakeGraphViz

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/MapMetro/MakeGraphViz/Map.pm  view on Meta::CPAN

    if($graphvizfile) {
        my $settings = $graphvizfile->slurp;
        $settings =~  s{^#.*$}{}g;
        $settings =~ s{\n}{ }g;

        for my $custom (split m/ +/ => $settings) {
            if($custom =~ m{^(\d+)-(\d+):([\d\.]+)$}) {
                my $origin_station_id = $1;
                my $destination_station_id = $2;
                my $len = $3;

 view all matches for this distribution


Dist-Zilla-Plugin-Module-Features

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Module/Features.pm  view on Meta::CPAN

sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name; $class =~ s{ [\-] }{::}gmx;
   my $filename = $self->zilla->_main_module_override ||
       catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

   $self->_load_modules;

   $filename or die 'No main module specified';
   -f $filename or die "Path ${filename} does not exist or not a file";

 view all matches for this distribution


Dist-Zilla-Plugin-NextRelease-Grouped

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/NextRelease/Grouped.pm  view on Meta::CPAN

    isa => Str,
    default => '%{ (TRIAL RELEASE)}T',
);
has groups => (
    is => 'ro',
    isa => (ArrayRef[Str])->plus_coercions(Str, sub { [split m{\s*,\s*}, $_] }),
    traits => ['Array'],
    coerce => 1,
    default => sub { ['API Changes', 'Bug Fixes', 'Enhancements', 'Documentation'] },
    handles => {
        all_groups => 'elements',

 view all matches for this distribution


Dist-Zilla-Plugin-Perinci-CmdLine

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Perinci/CmdLine.pm  view on Meta::CPAN

sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name; $class =~ s{ [\-] }{::}gmx;
   my $filename = $self->zilla->_main_module_override ||
       catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

   $filename or die 'No main module specified';
   -f $filename or die "Path ${filename} does not exist or not a file";
   my $abstract = $self->_get_abstract_from_meta_summary($filename);
   return unless $abstract;

 view all matches for this distribution


Dist-Zilla-Plugin-Rinci-AbstractFromMeta

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Rinci/AbstractFromMeta.pm  view on Meta::CPAN

sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name; $class =~ s{ [\-] }{::}gmx;
   my $filename = $self->zilla->_main_module_override ||
       catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

   $filename or die 'No main module specified';
   -f $filename or die "Path ${filename} does not exist or not a file";
   open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-ScriptX

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/ScriptX.pm  view on Meta::CPAN

sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $name; $class =~ s{ [\-] }{::}gmx;
    my $filename = $self->zilla->_main_module_override ||
        catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

    $filename or die 'No main module specified';
    -f $filename or die "Path ${filename} does not exist or not a file";
    #open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-Sort-Sub

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Sort/Sub.pm  view on Meta::CPAN

sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $name; $class =~ s{ [\-] }{::}gmx;
    my $filename = $self->zilla->_main_module_override ||
        catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

    $filename or die 'No main module specified';
    -f $filename or die "Path ${filename} does not exist or not a file";
    #open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-Sorter

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Sorter.pm  view on Meta::CPAN

sub before_build {
    my $self  = shift;
    my $name  = $self->zilla->name;
    my $class = $name; $class =~ s{ [\-] }{::}gmx;
    my $filename = $self->zilla->_main_module_override ||
        catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

    $filename or die 'No main module specified';
    -f $filename or die "Path ${filename} does not exist or not a file";
    #open my $fh, '<', $filename or die "File ${filename} cannot open: $!";

 view all matches for this distribution


Dist-Zilla-Plugin-SurgicalPodWeaver

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/SurgicalPodWeaver.pm  view on Meta::CPAN

    if ( $content =~ m/^\s*#+\s*(?:Dist::Zilla):\s*(.+)$/m ) {
        %hint = map {
            m/^([\+\-])(.*)$/ ?
                ( $1 eq '+' ? ( $2 => 1 ) : ( $2 => 0 ) ) :
                ()
        } split m/\s+/, $1;
    }

    return \%hint;
}

 view all matches for this distribution


Dist-Zilla-Plugin-perlmv

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/perlmv.pm  view on Meta::CPAN

sub before_build {
   my $self  = shift;
   my $name  = $self->zilla->name;
   my $class = $name; $class =~ s{ [\-] }{::}gmx;
   my $filename = $self->zilla->_main_module_override ||
       catfile( 'lib', split m{ [\-] }mx, "${name}.pm" );

   $filename or die 'No main module specified';
   -f $filename or die "Path ${filename} does not exist or not a file";
   my $abstract = $self->_get_abstract_from_scriptlet_summary($filename);
   return unless $abstract;

 view all matches for this distribution


Dist-Zilla-PluginBundle-Author-AMON

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/PluginBundle/Author/AMON.pm  view on Meta::CPAN

=cut

sub configure_meta {
    my ($self) = @_;

    my ($gh_user, $gh_repo) = split m(/), scalar $self->github, 2;
    unless (length $gh_user and length $gh_repo) {
        die "Github repo of the form <user>/<repo> required!";
    }

    $self->add_plugins(

 view all matches for this distribution


Dist-Zilla-PluginBundle-Prereqs

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/PrereqsClean.pm  view on Meta::CPAN

         # remove any obvious split potentials
         if ($self->removal_level <= RL_DIST_NO_SPLIT) {
            my ($non_ns, $new_mods) = part { /^\Q$main_module\E(?:\:\:|$)/ } @modules;
            @modules = $new_mods ? @$new_mods : ();

            # Add split modules to a "new" distro for further processing
            # (This will clean up both Dist::A::* and Dist::B::* from Dist-A)
            if ($non_ns && $new_mods) {
               @$non_ns = sort { length($a) <=> length($b) } @$non_ns;
               unshift @distros, [ $non_ns->[0], @$non_ns ];
            }

 view all matches for this distribution


Dist-Zilla-PluginBundle-ROKR

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/PluginBundle/ROKR.pm  view on Meta::CPAN

    if ( $content =~ m/^\s*#+\s*(?:Dist::Zilla):\s*(.+)$/m ) { 
        %hint = map {
            m/^([\+\-])(.*)$/ ?
                ( $1 eq '+' ? ( $2 => 1 ) : ( $2 => 0 ) ) :
                ()
        } split m/\s+/, $1;
    }

    return \%hint;
}

 view all matches for this distribution


Distribution-Guess-BuildSystem

 view release on metacpan or  search on metacpan

t/file_has_string.t  view on Meta::CPAN

	't/test-distros/module-install-autoinstall/Makefile.PL' => 'auto_install'
	};

foreach my $file ( sort keys %$pass_tests )
	{
	my $name = File::Spec->catfile( split m|/|, $file );
	ok( -e $name, "Passing file [$name] exists" );

	ok( $class->_file_has_string( $name, $pass_tests->{$file} ) );
	}
}

t/file_has_string.t  view on Meta::CPAN

	't/test-distros/module-install/Makefile.PL'             => 'auto_install'
	};

foreach my $file ( sort keys %$fail_tests )
	{
	my $name = File::Spec->catfile( split m|/|, $file );
	ok( -e $name, "Passing file [$name] exists" );

	ok( ! $class->_file_has_string( $name, $fail_tests->{$file} ) );
	}
}

 view all matches for this distribution


Dita-PCD

 view release on metacpan or  search on metacpan

lib/Dita/PCD.pm  view on Meta::CPAN

     }
    elsif ($l =~ m(\A\S))                                                       # Description
     {push @p, newDitaPcdDescription(description=>$l);
     }
    else                                                                        # Method
     {if (my ($method, @context) = split m/\s+/, trim($l))                      # Parse command string invoking method
       {push @p, newDitaPcdMethod(method=>$method, context=>[@context]);
       }
     }
   }

lib/Dita/PCD.pm  view on Meta::CPAN


sub compilePcdString($;$)                                                       #P Compile the specified L<pcd> directives in the supplied B<$string> optionally associated with B<$file>.
 {my ($string, $file) = @_;                                                     # Input string, optional name of file associated with string
  my $if = $file // q();                                                        # Nominal file

  my @l = split m/\n/, $string;

  my @blocks;
  for my $i(keys @l)                                                            # Each line==row a pcd file
   {my $l = $l[$i];
    my $j = $i + 1;

lib/Dita/PCD.pm  view on Meta::CPAN


    if ($l =~ m(\A\S)s)                                                         # Change description
     {push @blocks, [[trim($l), $i+1, $if], []];
     }
    else                                                                        # Change command block
     {if (my ($cmd, @Keys) = split m/\s+/, trim($l))                            # Parse command
       {my @keys;

        for my $key(@Keys)                                                      # Transforms keys into Perl strings
         {if    ($key =~ m(undef))       {push @keys, "undef"}                  # Undef for anything
          elsif ($key =~ m/\Aqr(.*)\Z/s) {push @keys, $key}                     # Words wrapped with qr(.*) are regular expressions

 view all matches for this distribution


Do

 view release on metacpan or  search on metacpan

lib/Data/Object/String.pm  view on Meta::CPAN


=head2 split

  split(RegexpRef $arg1, Num $arg2) : ArrayObject

The split method splits the string into a list of strings, separating each
chunk by the argument (string or regexp object), and returns that list as an
array reference. This method optionally takes a second argument which would be
the limit (number of matches to capture). Note, this operation expects the 1st
argument to be a Regexp object or a String. This method returns a
array object.

 view all matches for this distribution


Doc-Simply

 view release on metacpan or  search on metacpan

lib/Doc/Simply/Assembler.pm  view on Meta::CPAN

    my (@blocks, @block);
    my $normalizer = $self->normalizer;

    for my $comment (@$comments) {
        my ($type, $content) = @$comment;
        my @content = split m/\n/, $content;
        if ($type eq "line") {
            @content = map { $normalizer->($_) } @content;
            push @block, @content;
        }
        else {

 view all matches for this distribution


DocSet

 view release on metacpan or  search on metacpan

examples/site/src/docs/2.0/os/win32/Changes.pod  view on Meta::CPAN


The most recent changes are listed first.

=head1 Thu May 30 16:44:02  SGT 2002

* split modperl2 into config and install
  [Randy Kobes E<lt>randy@theoryx5.uwinnipeg.caE<gt>]

=head1 Thu May 30 12:20:02  SGT 2002

* win32::modperl2 initial docs

 view all matches for this distribution


Document-Stembolt

 view release on metacpan or  search on metacpan

lib/Document/Stembolt.pm  view on Meta::CPAN


    $self->content->write($self->file);
}

sub _editor {
	return [ split m/\s+/, ($ENV{VISUAL} || $ENV{EDITOR}) ];
}

sub _edit_file {
	my $file = shift;
	die "Don't know what editor" unless my $editor = _editor;

 view all matches for this distribution


Document-TriPart-Cabinet

 view release on metacpan or  search on metacpan

lib/Document/TriPart/Cabinet/Document.pm  view on Meta::CPAN

#    return $self->{_modified_datetime};
#}
#sub _extract_datetime {
#    my $self = shift;
#    return unless my $datetime = $self->header->{datetime};
#    my ($created, $modified) = split m/\s*|\s*/, $datetime, 2;
#    $self->{_created_datetime} = $created;
#    $self->{_modified_datetime} = $modified;
#    
#}
#sub created_datetime {

 view all matches for this distribution


Document-TriPart

 view release on metacpan or  search on metacpan

lib/Document/TriPart.pm  view on Meta::CPAN

    $string =~ s/^---\s*//;
    return $string;
}

sub _editor {
	return [ split m/\s+/, ($ENV{VISUAL} || $ENV{EDITOR}) ];
}

sub _edit_file {
	my $file = shift;
	die "Don't know what editor" unless my $editor = _editor;

 view all matches for this distribution


Dpkg

 view release on metacpan or  search on metacpan

lib/Dpkg/Vendor.pm  view on Meta::CPAN

    my $vendor = shift || get_current_vendor() || 'Default';
    my $vendor_key = lc $vendor =~ s{$vendor_sep_regex}{}gr;
    state %OBJECT_CACHE;
    return $OBJECT_CACHE{$vendor_key} if exists $OBJECT_CACHE{$vendor_key};

    my @vendor_parts = split m{$vendor_sep_regex}, $vendor;

    my @names;
    push @names, join q{}, map { ucfirst } @vendor_parts;
    push @names, join q{}, map { ucfirst lc } @vendor_parts;

 view all matches for this distribution


( run in 3.517 seconds using v1.01-cache-2.11-cpan-600a1bdf6e4 )