OrePAN2
view release on metacpan or search on metacpan
lib/OrePAN2/Index.pm view on Meta::CPAN
use utf8;
use IO::Uncompress::Gunzip qw( $GunzipError );
use OrePAN2 ();
use version;
use Moo;
use Types::Standard qw( HashRef );
use namespace::clean;
has index => ( is => 'ro', isa => HashRef, default => sub { +{} } );
sub load {
my ( $self, $fname ) = @_;
my $fh = do {
if ( $fname =~ /\.gz\z/ ) {
IO::Uncompress::Gunzip->new($fname)
or die "gzip failed: $GunzipError\n";
}
else {
( run in 0.565 second using v1.01-cache-2.11-cpan-5f2e87ce722 )