Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Overriding 'use'?

by xdg (Monsignor)
on Sep 12, 2005 at 11:26 UTC ( #491222=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Replace Data::Dumper::import
    BEGIN {
    ...
    
        *Data::Dumper::import = sub { warn "Can't use Data::Dumper" };
    }
    
  2. or download this
    # Count times "Data::Dumper::import" is called, e.g. via use
    BEGIN {
    ...
            $dumper_import->(@_);    
        };
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://491222]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-10-01 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?