problem-solving
problem-solving copied to clipboard
Include line numbers in Pod::Blocks
Pod::Blocks are objects that have attributes such as 'contents' and 'meta'. By having another attribute 'line' containing the line number within the program where the block starts, eg, where the =head
marker appears, it will be possible to create tools to find errors more easily.
…
When Pod::Blocks are generated the compiler contains state information about where each Block starts. This can be found when a program is running eg say "At $?LINE"
. Incorporating this as an attribute of a Pod::Block would make it easier to have tools when there are long Rakudoc documents.
…