#!/usr/bin/perl use lib '../lib'; # If you haven't installed perl yet. use Pod::Functions; local $/ = ''; $cur = ''; while (<>) { next unless /^=(?!cut)/ .. /^=cut/; if (/=item (\S+)/ and $1 ne '*') { my $item = $1; s/=item //; $next{$cur} = $item; $cur = $item; $syn{$cur} .= $_; next; } else { s,L $name.pod") || die "can't open $name.pod: $!"; print POD <