
rheydenr
Novice
Mar 12, 2007, 1:42 AM
Post #1 of 1
(215 views)
|
|
Using Pod::Select
|
Can't Post
|
|
Hi all, is there anybody out who can explain me the usage of Pod::Select? I can't get the things work. What I want is to select a subsection of a POD in a file (sounds simple, eh?). My try:
use Pod::Select; $parser = new Pod::Select(); $parser->select("MYHEADER/MySubheader"); $parser->parse_from_file("myFile.pl", "myOutFile.txt"); __END__ =head1 MYHEADER =head2 MySubheader This section ist what I want. =head2 FunStuff This is not needed. =head1 OPTIONS This section has to toss away. =cut The code was saved as myFile.pl, i.e., the input file. The result is an empty myOutFile.txt. My BIG question: What's wrong with this code??? TIA, Ralf.
|