$57 GRAYBYTE WORDPRESS FILE MANAGER $84

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/share/perl5/vendor_perl/Module/Build/

HOME
Current File : /usr/share/perl5/vendor_perl/Module/Build//PodParser.pm
package Module::Build::PodParser;

use strict;
use warnings;
our $VERSION = '0.4224';
$VERSION = eval $VERSION;

sub new {
  # Perl is so fun.
  my $package = shift;

  my $self;
  $self = bless {have_pod_parser => 0, @_}, $package;

  unless ($self->{fh}) {
    die "No 'file' or 'fh' parameter given" unless $self->{file};
    open($self->{fh}, '<', $self->{file}) or die "Couldn't open $self->{file}: $!";
  }

  return $self;
}

sub parse_from_filehandle {
  my ($self, $fh) = @_;

  local $_;
  while (<$fh>) {
    next unless /^=(?!cut)/ .. /^=cut/;  # in POD
    # Accept Name - abstract or C<Name> - abstract
    last if ($self->{abstract}) = /^ (?: [a-z_0-9:]+ | [BCIF] < [a-z_0-9:]+ > ) \s+ - \s+ (.*\S) /ix;
  }

  my @author;
  while (<$fh>) {
    next unless /^=head1\s+AUTHORS?/i ... /^=/;
    next if /^=/;
    push @author, $_ if /\@/;
  }
  return unless @author;
  s/^\s+|\s+$//g foreach @author;

  $self->{author} = \@author;

  return;
}

sub get_abstract {
  my $self = shift;
  return $self->{abstract} if defined $self->{abstract};

  $self->parse_from_filehandle($self->{fh});

  return $self->{abstract};
}

sub get_author {
  my $self = shift;
  return $self->{author} if defined $self->{author};

  $self->parse_from_filehandle($self->{fh});

  return $self->{author} || [];
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Nov 2024 1.43 PM
root / root
0755
Platform
--
31 Aug 2024 4.31 AM
root / root
0755
API.pod
67.087 KB
13 Oct 2019 5.59 PM
root / root
0644
Authoring.pod
10.746 KB
13 Oct 2019 5.59 PM
root / root
0644
Base.pm
161.332 KB
13 Oct 2019 5.59 PM
root / root
0644
Bundling.pod
4.988 KB
13 Oct 2019 5.59 PM
root / root
0644
Compat.pm
18.104 KB
13 Oct 2019 5.59 PM
root / root
0644
Config.pm
1.076 KB
13 Oct 2019 5.59 PM
root / root
0644
ConfigData.pm
6.682 KB
13 Oct 2019 5.59 PM
root / root
0644
Cookbook.pm
16.931 KB
13 Oct 2019 5.59 PM
root / root
0644
Dumper.pm
0.443 KB
13 Oct 2019 5.59 PM
root / root
0644
Notes.pm
8.117 KB
13 Oct 2019 5.59 PM
root / root
0644
PPMMaker.pm
4.432 KB
13 Oct 2019 5.59 PM
root / root
0644
PodParser.pm
1.274 KB
13 Oct 2019 5.59 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF