in reply to How to tell if a package is loaded

Another way is to inspect %INC
if (exists $INC{'FindBin.pm'}) { print "FindBin is loaded\n"; }