| 1 | #!/usr/local/bin/perl -w | ||||||||||
| 2 | |||||||||||
| 3 | =begin lip | ||||||||||
| 4 | |||||||||||
| 5 | =for none | ||||||||||
| 6 | ############################################################################### | ||||||||||
| 7 | ############################################################################### | ||||||||||
| 8 | |||||||||||
| 9 | =head1 DRIVER | ||||||||||
| 10 | |||||||||||
| 11 | The main driver for the program allocates a parser from the 'lip' class defined | ||||||||||
| 12 | earlier and calls it in a loop for the files named on the command line. If | ||||||||||
| 13 | there were no files on the command line, then '-' (STDIN) is used. | ||||||||||
| 14 | |||||||||||
| 15 | =cut | ||||||||||
| 16 | |||||||||||
| 17 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 1 | ▶ | use Lip::Pod; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | |||||||||||
| 20 | package main; | ||||||||||
| 21 | |||||||||||
| 22 | 1 | my $parser = new Lip::Pod; | |||||||||
| 23 | |||||||||||
| 24 | 1 | $parser->parseopts( -want_nonPODs => 1, -process_cut_cmd => 1 ); | |||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | push @ARGV, '-' unless @ARGV; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | |||||||||||
| 28 | 1 | for (@ARGV) { $parser->parse_from_file($_); } | |||||||||
| 29 | |||||||||||
| 30 | 1 | exit 0; | |||||||||
| 31 | |||||||||||
| 32 | =for none | ||||||||||
| 33 | ############################################################################### | ||||||||||
| 34 | ############################################################################### | ||||||||||
| 35 | |||||||||||
| 36 | =end lip | ||||||||||
| 37 | |||||||||||
| 38 | =cut | ||||||||||
| 39 | |||||||||||
| 40 | __END__ | ||||||||||