in reply to Weird compilation success

In few words, A.pm is not a script, so it makes no sense to execute it.
perl -wc A.pm
should be
perl -wce'use A'