print "Mod loaded at 1" if %{Mod::}; sub use_it { use Mod; } print "Mod loaded at 2" if %{Mod::}; use_it(); print "Mod loaded at 3" if %{Mod::};