The Perl 6 POD documentation has a section on accessing the current file's POD document by using $=pod
. There is no information on accessing another file's POD document.
How can I access another file's POD structure, without altering the current file's $=pod
?
You can now do that with Pod::Load. From the README
in the examples directory
perl6 -e 'use Pod::Load; .perl.say for load("pod-load-clean.pod6")'
Please note that the Pod6 file has to be "clean", that is, not use any external module that is not generally available or it might fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With