Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Overriding 'use'?

by xdg (Monsignor)
on Sep 12, 2005 at 11:26 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found