#!/usr/bin/perl #BEGIN { unshift @INC, sub { warn "loading $_[ 1]\n"; return } } #or use lib sub {warn "loading $_[ 1]\n"; return }; use CGI; print "hello\n"; #or #Abigail #Alternatively, one could just inspect %INC. #Just stuff # CHECK {print "$_\n" for keys %INC} #somewhere in your code, and run 'perl -c'.