develooper Front page | perl.perl6.users | Postings from July 2021

pod questions

Thread Next
Marcel Timmerman
July 19, 2021 11:57
pod questions
Message ID:

Still trying to find a way to have test code in my programs. Normally 
not executed but an imported class could make some sense of it. Others 
have tried already but I wanted to do the following which looks promising;

=begin Gnome-T
=begin code

my Int $i = 10;

=end code
=end Gnome-T

I can find the test code when I process the pod data. The tag added to 
begin will not pose a problem. I need the code section to keep the 
newlines in. The problem now is when one needs to render other pod data 
to html or markdown, this part comes with it like shown the next 
markdown output


     my Int $i = 10;

Three questions;

  * Are there any reserved tags for the '=begin' format name?
  * Reading a bit, I came across old documents (with a warning that
    these are out of date) . It states that
    any unrecognized format name should be treated as a comment block,
    which the above output shows, the renderers do not. Should I file an
  * If the block is really treated as comments, would the code block be



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About