Current Path : /compat/linux/proc/68247/cwd/usr/src/crypto/openssl/util/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/cwd/usr/src/crypto/openssl/util/extract-names.pl |
#!/usr/bin/perl $/ = ""; # Eat a paragraph at once. while(<STDIN>) { chop; s/\n/ /gm; if (/^=head1 /) { $name = 0; } elsif ($name) { if (/ - /) { s/ - .*//; s/,\s+/,/g; s/\s+,/,/g; s/^\s+//g; s/\s+$//g; s/\s/_/g; push @words, split ','; } } if (/^=head1 *NAME *$/) { $name = 1; } } print join("\n", @words),"\n";