moving testing again
This commit is contained in:
parent
b780fd380e
commit
de25d8c83d
4 changed files with 20 additions and 0 deletions
BIN
everything.stor
BIN
everything.stor
Binary file not shown.
10
getauth.pl
Executable file
10
getauth.pl
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use lib './lib';
|
||||
|
||||
use Dist;
|
||||
|
||||
my $module = "Moose";
|
||||
|
||||
print Dist::get_author $module
|
10
lib/Dist.pm
10
lib/Dist.pm
|
@ -16,5 +16,15 @@ while (my $l = <$fh>) {
|
|||
$mod_to_dist{$module} = $dist;
|
||||
}
|
||||
|
||||
sub get_author {
|
||||
my $module = shift; # dist name or module name
|
||||
|
||||
if (my $dist = $mod_to_dist{$module}) {
|
||||
if ($dist =~ m|^\w/\w\w/([^/]+)/[^/]+$|) {
|
||||
return $1;
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
1;
|
||||
|
|
BIN
modcache.stor
BIN
modcache.stor
Binary file not shown.
Loading…
Add table
Reference in a new issue