/usr/share/perl5/Pod/Eventual/Simple.pm is in libpod-eventual-perl 0.093170-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | use strict;
use warnings;
package Pod::Eventual::Simple;
our $VERSION = '0.093170';
use Pod::Eventual;
BEGIN { our @ISA = 'Pod::Eventual' }
# ABSTRACT: just get an array of the stuff Pod::Eventual finds
sub new {
my ($class) = @_;
bless [] => $class;
}
sub read_handle {
my ($self, $handle, $arg) = @_;
$self = $self->new unless ref $self;
$self->SUPER::read_handle($handle, $arg);
return [ @$self ];
}
sub handle_event {
my ($self, $event) = @_;
push @$self, $event;
}
BEGIN {
*handle_blank = \&handle_event;
*handle_nonpod = \&handle_event;
}
1;
__END__
=pod
=head1 NAME
Pod::Eventual::Simple - just get an array of the stuff Pod::Eventual finds
=head1 VERSION
version 0.093170
=head1 SYNOPSIS
use Pod::Eventual::Simple;
my $output = Pod::Eventual::Simple->read_file('awesome.pod');
This subclass just returns an array reference when you use the reading methods.
The arrayref contains all the Pod events and non-Pod content. Non-Pod content
is given as hashrefs like this:
{
type => 'nonpod',
content => "This is just some text\n",
start_line => 162,
}
For just the POD events, grep for C<type> not equals "nonpod"
=for Pod::Coverage new
=head1 AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|