CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Using Pod::Select

 



rheydenr
Novice

Mar 12, 2007, 1:42 AM

Post #1 of 1 (1542 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:


Code
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.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives