Created
October 1, 2009 16:40
-
-
Save c9s/199086 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
# get perl function list | |
open(FH, '-|', qq|podselect -section 'DESCRIPTION/Alphabetical Listing of Perl Functions' pod/perlfunc.pod| ); | |
my @func ; | |
my $inline = 0; | |
while( <FH> ) | |
{ | |
if( /^=over/ ) { | |
$inlist++; | |
} | |
elsif( /^=back/ ) { | |
$inlist--; | |
} | |
elsif( /^=item \w+/ ) { | |
s/^=item //; | |
chomp; | |
push @func,$_ if $inlist = 1; | |
} | |
} | |
close FH; | |
print $_ , "\n" for @func; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment