in reply to No Grok POD Tag

Your example works, but only if you put an extra line before "=cut". I put it into a file called test.pod:
=head1 B<this> will work But this down I<here> won't work. =cut
and did:      % perldoc ./test.pod Or:      % pod2html ./test.pod The output is approximately as follows:



this will work

But this down here won't work.

Replies are listed 'Best First'.
Re: Re: No Grok POD Tag
by Anonymous Monk on Jul 03, 2001 at 21:05 UTC
    I'm sorry, it looks like my example didn't cover the whole case. Here's some more sample:

    =head1 OPTIONS The following options are supported. Also note that some options are mutually exclusive (see B<SYNOPSIS>). =item I<-v> View only. This will create a view as defined in the configuration file for either I<development> or I<integration>. This option must include either the B<dev> or the B<int> argument. =item I<-s> Snapshot. Will create a snapshot view instead of a dynamic view. Note that the snapshot path must be defined in the configuration file. =item I<-e> Existing stream. Will create a dynamic view based on an existing stream. Note that the view should not exist already. The provided argument should be the I<name> of the stream - not the I<title> of the stream. =head1 EXAMPLES =item * joinproject -v dev configfilename.cfg =cut

    I tried putting in =cut statements (surrounded by empty lines) but that didn't work, either. I can't get anything other than the initial items to display with their appropriate tags.

    Thanks for your input - that did work for my example, unfortunately, I don't think I made my example comprehensive enough. Do you have any more ideas or do you see something I'm doing wrong in general (for example, should I be putting a =cut after every command block?)


    Andy

      Your problem is that you're indenting the text after your POD sections. (ie. =head1, =head2, =item, etc...) Indententation is like the POD equivalent of <PRE> tags in HTML.
        That was it! Thank you very much!

        Andy