Group
Extension

Matches 1

Parse-CPAN-Meta ( D/DA/DAGOLDEN/Parse-CPAN-Meta-1.4422.tar.gz, DAGOLDEN, 2016; MetaCPAN )
Parse-CPAN-Meta/lib/Parse/CPAN/Meta.pm ( view source; MetaCPAN )
use 5.008001;
use strict;
package Parse::CPAN::Meta;
# ABSTRACT: Parse META.yml and META.json CPAN metadata files

our $VERSION = '1.4422';

use Exporter;
use Carp 'croak';

our @ISA = qw/Exporter/;
o
($meta);
  }
  elsif ($filename =~ /\.json$/) {
    return $class->load_json_string($meta);
  }
  else {
    $class->load_string($meta); # try to detect yaml/json
  }
}

sub load_string {
  my ($class
lass->load_yaml_string($string);
  }
  elsif ( $string =~ /^\s*\{/ ) { # looks like JSON
    return $class->load_json_string($string);
  }
  else { # maybe doc-marker-free YAML
    return $class->load

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.