These changes complete all? of the improvements to apkbuild-cpan.in that were originally in !35 (closed) but do not include the dependency on perl-metacpan-client.
I tried to squash and combine the change to reduce the commits while keeping each small enough to explain the purpose.
Functionally this is able to process all but a few perl modules in the aports tree and perform a version check on them despite the various template differences
I find the recreate option to be the best when modifying a perl package as it updates the APKBUILD file to the new template, increments the pkgrel etc. A simple git diff then will allow you to determine if you need to adjust the results