Unfortunately, a number of people have broken the conventions and released their non-pragma modules to CPAN with all lowercase names, just because they like the way it looks. That means you pretty much have no choice but to hard-code the list of real pragmas.