http://qs1969.pair.com?node_id=491162

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Greetings. I am trying to figure out how to override 'use'.

BEGIN{ use subs qw(use); sub use{ print "Using fake use\n"; } } use Data::Dumper;
However, this didn't seem to work. I tried enclosing the enclosing the 'subs' pragma and the fake 'use' definition in a BEGIN block because the 'use' occurs at compile time. Alas, this didn't seem to work.

Thus I have come to you seeking enlightenment. I am going about this wrong? Is it even possible to override the 'use' special form? Is their documentation anywhere specifying what CORE subroutines are and are not overridable?