in reply to Re^2: require at compile time?
in thread require at compile time?

As does exist exists $INC{'URI.pm'}

Replies are listed 'Best First'.
Re^4: require at compile time?
by Corion (Patriarch) on Nov 07, 2008 at 16:49 UTC

    Not necessarily:

    perl -wle "print $URI::VERSION; print $INC{'URI.pm'}; print $::{'URI:: +'}"

    The namespace URI isn't necessarily populated by use URI;, it might come from a pasted snippet or from accessing global symbols in it.