perldoc spacing oddity

R

Ronald Fischer

I have in the documentation section of my module:

###############################################################
=head1 CLASS METHODS

=over 4

=item B<new> - CONSTRUCTOR

$obj = new TelnetCli([$timeout]);

This creates a new TelnetCli object......
###############################################################

When I display this using perldoc, the output looks like this:

###############################################################
CLASS METHODS
new - CONSTRUCTOR
$obj = new TelnetCli([$timeout]);

This creates a new TelnetCli object....
###############################################################

Note that there are no empty lines before and after the =item line.
This surprises me, because when I look at some modules in the
Perl distribution, how the PODs are defined there, I see that
they do it exactly as I do, but they do have empty lines around
the item lines.

Is someone able to spot what I am doing wrong here?

Ronald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top