Perl: simplify module version checking.

This makes things slightly easier to follow for the next person.  I
suspect I'll be back here soon and I like my sanity.