Skip to content

Instantly share code, notes, and snippets.

@c9s
Created October 1, 2009 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c9s/199086 to your computer and use it in GitHub Desktop.
Save c9s/199086 to your computer and use it in GitHub Desktop.
#!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