coolmichael has asked for the wisdom of the Perl Monks concerning the following question:
Suppose I have an error message package which associates error messages with error codes. I've got all the error codes and messages stored in the DATA section of the package, and it's working out very nicely.
But now I want to include the list of error codes and messages in the POD for the module somehow. I'm not sure how to do that.
Any suggestions are welcome, I'm open to rewriting and redesigning the package.
package FOO::Messages; ... __DATA__ eof:Unexpected end of file bad_tag:Syntax error in tag ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mixing documentation and data
by tobyink (Canon) on Feb 01, 2013 at 10:20 UTC | |
by coolmichael (Deacon) on Feb 01, 2013 at 18:15 UTC | |
|
Re: Mixing documentation and data (hash, i18n/ gettext/.po/.mo)
by Anonymous Monk on Feb 01, 2013 at 08:04 UTC | |
|
Re: Mixing documentation and data
by tmharish (Friar) on Feb 01, 2013 at 07:07 UTC | |
by Anonymous Monk on Feb 01, 2013 at 07:26 UTC | |
by tmharish (Friar) on Feb 01, 2013 at 07:30 UTC | |
by Anonymous Monk on Feb 01, 2013 at 10:13 UTC | |
by tmharish (Friar) on Feb 01, 2013 at 10:24 UTC | |
| |
by KurtZ (Friar) on Feb 02, 2013 at 10:00 UTC | |
|
Re: Mixing documentation and data
by vinoth.ree (Monsignor) on Feb 01, 2013 at 05:56 UTC |