Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access POD from another Perl 6 file

Tags:

raku

pod6

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?

like image 572
Tyil Avatar asked Jun 22 '18 14:06

Tyil


1 Answers

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.

like image 69
jjmerelo Avatar answered Oct 10 '22 12:10

jjmerelo