Created
May 10, 2015 06:58
-
-
Save melo/b00c380bad52bfe8c1ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub _merge_cpanfile { | |
my @cpanfiles = map { $_ = Module::CPANfile->load($_)->prereqs } _find_cpanfiles($_[0]); | |
my $reqs = CPAN::Meta::Prereqs->new->with_merged_prereqs(\@cpanfiles); | |
return Module::CPANfile->from_prereqs($reqs->as_string_hash)->to_string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment