#! perl print <. * * The authors can be reached via e-mail to */ EOF my $idx = 0; while (<>) { if (/^=head2 (\S+) EVENTS/) { $klass = $1; } elsif (/=head3 (\S+)\s*(.*)/) { print "def ($klass, \U$1\E) // ", $idx++, " $2\n"; } }