Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: pod::usage "-sections" not working

by Anonymous Monk
on Apr 26, 2013 at 07:06 UTC ( #1030785=note: print w/ replies, xml ) Need Help??


in reply to pod::usage "-sections" not working

FYI, this is how your failing pod is parsed

$ perl -MPod::Simple::DumpAsXML -e " Pod::Simple::DumpAsXML->filter(s +hift)->any_errata_seen" udge <Document start_line="5"> <head1 start_line="5"> SYNOPSIS here&#39;s the main usage stuff </head1> <head1 start_line="8"> SPECIAL special usage stuff here... </head1> </Document>

Corrected pod, like toolic wrote, with the head sections being one word strings :)

$ perl -MPod::Simple::DumpAsXML -e " Pod::Simple::DumpAsXML->filter(s +hift)->any_errata_seen" udge <Document start_line="5"> <head1 start_line="5"> SYNOPSIS </head1> <VerbatimFormatted start_line="7" xml:space="preserve"> here&#39;s the main usage stuff </VerbatimFormatted> <head1 start_line="9"> SPECIAL </head1> <VerbatimFormatted start_line="11" xml:space="preserve"> special usage stuff here... </VerbatimFormatted> </Document>

In pod, empty line is paragraph separator, perlpod, perlpodspec


Comment on Re: pod::usage "-sections" not working
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2014-09-18 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (105 votes), past polls