Yary has asked for the wisdom of the Perl Monks concerning the following question:
Thing is, some tests also want input files, and I also want to show the example files in the POD while being sure the tested file contents match.
Is there already in CPAN some way of embedding several different sample files in POD, with a processor to create them in a given directory? Or conversely, an easy way to include the contents of a file from my t/sample-data/ directory in my POD?
Simpler the better. This is for internal use, smallish modules and scripts. For example I respect RJBS' POD::Weaver, POD::Elemental but think they are too much for me and this project. I'm trying to improve upon example-file copy/paste with something nearly as simple.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting/embedding sample files in POD
by LanX (Saint) on Feb 17, 2015 at 04:35 UTC | |
by Yary (Pilgrim) on Feb 17, 2015 at 13:42 UTC | |
by LanX (Saint) on Feb 17, 2015 at 20:32 UTC | |
by Yary (Pilgrim) on Feb 19, 2015 at 19:47 UTC | |
by LanX (Saint) on Feb 19, 2015 at 22:29 UTC | |
|
Re: Extracting/embedding sample files in POD
by Anonymous Monk on Feb 17, 2015 at 05:27 UTC | |
by Yary (Pilgrim) on Feb 17, 2015 at 17:46 UTC | |
by Anonymous Monk on Feb 18, 2015 at 00:16 UTC | |
|
Re: Extracting/embedding sample files in POD
by RonW (Parson) on Feb 20, 2015 at 01:36 UTC |