Data-TagHive
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Data/TagHive.pm view on Meta::CPAN
#pod book.topic
#pod book.topic:programming
#pod book.topic:programming.perl
#pod book.topic:programming.perl.cpan
#pod
#pod =cut
sub new {
my ($class) = @_;
return bless { state => {} } => $class;
}
my $tagname_re = qr{ [a-z] [-a-z0-9_]* }x;
my $tagvalue_re = qr{ [-a-z0-9_]+ }x;
my $tagpair_re = qr{ $tagname_re (?::$tagvalue_re)? }x;
my $tagstr_re = qr{ \A $tagpair_re (?:\.$tagpair_re)* \z }x;
sub _assert_tagstr {
my ($self, $tagstr) = @_;
croak "invalid tagstr <$tagstr>" unless $tagstr =~ $tagstr_re;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.931 second using v1.00-cache-2.02-grep-82fe00e-cpan-dad7e4baca0 )