Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How do you uncover needless module loads or missing loads in code.

by iiijjjiii (Novice)
on Jul 15, 2009 at 18:51 UTC ( [id://780433]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    use Bar;                    # Needless
    
    my $foo = Foo->new();
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    use Foo;
    
    my $bar = Bar->new();       # Works because Bar is loaded by Foo
    
  3. or download this
    package Foo;
    
    ...
    sub new {
        ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://780433]
Approved by ikegami
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found