Pod-SAX
view release on metacpan or search on metacpan
lib/Pod/SAX.pm view on Meta::CPAN
my $text = shift;
my($page, $section);
if ($text =~ /^"(.*)"$/s) # L<"sec">;
{
$page = '';
$section = $1;
}
else # all other cases
{
($page, $section) = split m(/), $text, 2;
# to quiet -w
defined $page or $page = '';
defined $section or $section = '';
$page =~ s/\s*\(\d\)$//; # ls (1) -> ls
$section =~ s( ^" | "$ )()xg; # lose the quotes
# L<section in this man page> (without quotes)
if ($page !~ /^[\w.-]+(::[\w.-]+)*$/ and $section eq '')
( run in 0.688 second using v1.01-cache-2.11-cpan-71847e10f99 )