in reply to Can a module's POD access the module's variables?

The easiest thing is probably to filter the source file before feeding it to pod2html. Use Module::Info to extract the version, then either replace some keyword like __VERSION__ in the Pod, or insert a brand new version section in the Pod, then send it on to pod2html.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re: Can a module's POD access the module's variables?