Please read carefully. This question is tricky.
At the beginning of my module I examine %INC with a BEGIN block, like so:
BEGIN { %Seen = %INC }
That tells me what %INC looks like before I 'use' anything in my module. In other words, it tells me what files, if any, were loaded before my own.
What I would like to know are the entries made to %INC by my module and *only* by my module. So if my module doesn't use CGI.pm and a script is using my module like so:
use My::Module;
use CGI;
I could tell that the CGI module was
used by the script and not by my module. How could I figure this out from
within my module? I tried using an END block to no avail.