Menu

#36 POD: outline subroutines not shown

closed-fixed
Outline (28)
5
2004-05-12
2003-11-20
No

I have a perl script with valid POD info inside (see below). But the
POD prevents the subroutines from being shown in the Outline.

The funny thing is: When I double the =cut line:

=cut
=cut

all subroutines are shown immediately. This doesn't even cause a
perldoc warning, so I consider it as an okay workaround. But I
don't wanna pollute my files with a stupid =cut\n=cut
Is there an easy fix in the epic sources?

#! /usr/bin/perl -w

=head1 NAME

Test

=head1 METHODS

The following methods can be used:

=cut

### Method test ###

=over 4

=item Test->test();

Prints a test message

=back

=cut

sub test {
print "test";
}

### Method test2 ###

=over 4

=item Test->test2();

Prints a test message

=back

=cut

sub test2 {
print "test2";
}

1;

Discussion

  • Markus Dreyer

    Markus Dreyer - 2003-11-20

    Logged In: YES
    user_id=831672

    I found an interesting behavior:

    if the number of =head1 headings is even (as in the code example
    above), the outline does not work. If it is odd, the outline works. So, just
    add 1, 3, or 5 , ..., methods, and the Outline works, i.e. methods are
    shown!!! I hope there will be a fix soon!

     
  • Jochen Ruehl

    Jochen Ruehl - 2003-11-21
    • assigned_to: nobody --> luelljoc
     
  • Jochen Ruehl

    Jochen Ruehl - 2004-05-12

    Logged In: YES
    user_id=274815

    This should be fixed in EPIC 0.1.0.
    If not please reopen the bug.

     
  • Jochen Ruehl

    Jochen Ruehl - 2004-05-12
    • status: open --> closed-fixed
     

Log in to post a comment.