On Tue, 26 Apr 2011, Karl Williamson wrote: > > Look at > http://search.cpan.org/~rjbs/perl-5.12.3/pod/perlsyn.pod > > There is a heading in the original source > =head2 Switch statements
If you look closely, the heading is actually: | =head2 Switch statements | X<switch> X<case> X<given> X<when> X<default> Everything up to the paragraph separator is part of the headline. > The anchor that is generated somehow on the web is > <h2><a class='u' href='#___top' title='click to go to top of document' > name="Switch_statements_____" > >Switch statements ... > > Note that the space in the original is translated into an underscore, > and the addition of several trailing underscores. This means that the > link on the page that goes like > See also L</"Switch statements">. > > doesn't work, as it gets translated into > <a href="#Switch_statements" class="podlinkpod" > > Can someone explain the trailing underscores? The trailing underscores correspond to the spaces before and between the X<> elements at the end of the heading. Cheers, -Jan
