Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: 'require/use' scoping

by brian_d_foy (Abbot)
on Jan 29, 2008 at 15:26 UTC ( [id://664910]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Foo;
    
    ...
        require Foo;
        Foo->import;
        }
    
  2. or download this
    use MODULE qw(import list);
    
    ...
        require MODULE;
        MODULE->import(import list);
        }
    
  3. or download this
    use MODULE ();
    
    BEGIN {
        require MODULE;
        }
    
  4. or download this
    require "lib/Foo.pm"; # no @INC searching!
    
  5. or download this
    sub require {
      my ($filename) = @_;
    ...
          return $result;
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://664910]
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: (None)
    As of 2024-04-25 01:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found