in reply to Overriding the built-in require function

Wrap your substitution in a BEGIN block, then it works:
BEGIN { *CORE::GLOBAL::require = sub { CORE::require($_[0]); print $_[0], "\n"; }; }

Replies are listed 'Best First'.
Re^2: Overriding the built-in require function
by /dev/urandom (Beadle) on Feb 04, 2008 at 19:59 UTC
    excellent. that indeed seemed to work. thank you very much.