What sources are you trying to build? gentoo-sources depends on dev-lang/perl (through the inherited kernel-2 eclass) so it should've been pulled in when you emerged that. Is it possible that you're building old kernel sources that were left behind from an aborted install?

- John_________________I can confirm that I have received between 0 and 499 National Security Letters.