App-OnePif
view release on metacpan or search on metacpan
lib/App/OnePif.pm view on Meta::CPAN
},
);
has out => (
is => 'rw',
lazy => 1,
default => sub {
my ($self) = @_;
my $term = $self->term();
my $out = eval { $term->out() } || \*STDOUT;
binmode $out, ':encoding(utf8)';
return $out;
},
);
has type => (
is => 'rw',
lazy => 1,
default => sub { '*' },
);
t/release-pod-version.t view on Meta::CPAN
(my $packfile = "$module.pm") =~ s{::}{/}gmxs;
require $packfile;
(my $filename = $INC{$packfile}) =~ s{pm$}{pod};
my $pod_version;
{
open my $fh, '<', $filename
or BAIL_OUT "can't open '$filename'";
binmode $fh, ':raw';
local $/;
my $module_text = <$fh>;
($pod_version) = $module_text =~ m{
^This\ document\ describes\ $module\ version\ (.*?)\.$
}mxs;
}
my $version;
{
no strict 'refs';
( run in 1.241 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )