Obtaining the Pod of a module without explicitly exporting it
问题 The documentation in Perl 6 programs, using the Pod 6 DSL, are actually parsed as part of the code; this makes that documentation available, inside the program, as the $=pod variable. However, I'd like to have access to that variable in order to process it from, say, tests. In this example I wrote for the Perl 6 Advent Calendar it's simply exported as a class (grammar, in this case) variable: our $pod = $=pod[0]; I can then use it this way: use Data::Dump; use MONKEY-SEE-NO-EVAL; sub MAIN(