3 # Copyright (c) 2004 Liviu Daia <Liviu.Daia@imar.ro>
7 # $Id: get_anchors.pl,v 1.1.1.1 2009/06/23 10:08:36 tron Exp $
8 # $Source: /pub/NetBSD/misc/repositories/cvsroot/src/external/ibm-public/postfix/dist/mantools/get_anchors.pl,v $
15 local $SIG{__WARN__
} = \
&Carp
::cluck
;
25 push @
{$a{$attr->{name
}}}, $fn
26 if ($t eq 'a' and defined $attr->{name
});
30 $p = HTML
::Parser
->new(api_version
=> 3);
31 $p->strict_comment (0);
32 $p->report_tags (qw(a));
33 $p->ignore_elements (qw(script style));
35 $p->handler (start
=> \
&html_parse_start
, 'tagname, attr');
45 print "$_\t\tdefined in ", (join ', ', @
{$a{$_}}), "\n"
47 print "$_\t\tnumerical in ", (join ', ', @
{$a{$_}}), "\n"