/usr/share/perl5/Pod/Tree/Stream.pm is in libpod-tree-perl 1.25-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 | package Pod::Tree::Stream;
use strict;
use warnings;
our $VERSION = '1.25';
sub new {
my ( $package, $fh ) = @_;
my $stream = {
fh => $fh,
line => ''
};
bless $stream, $package;
}
sub get_paragraph {
my $stream = shift;
my $fh = $stream->{fh};
my $line = $stream->{line};
defined $line or return undef; ##no critic (ProhibitExplicitReturnUndef)
my (@lines) = ($line);
while ( $line = $fh->getline ) {
push @lines, $line;
$line =~ /\S/ or last;
}
while ( $line = $fh->getline ) {
$line =~ /\S/ and last;
push @lines, $line;
}
$stream->{line} = $line;
join '', @lines;
}
1;
|