Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: use vs. require

by ikegami (Patriarch)
on Nov 27, 2007 at 15:35 UTC ( [id://653272]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    A::B->new()
    
  2. or download this
    "A::B"->new()
    
  3. or download this
    A::B()->new()
    
  4. or download this
    1. Compile use A;
    2. Execute require A;
    ...
    6. Execute A->import();
    7. Compile my $test = A::B->new(test => 1); as A::B()->new
    8. Execute my $test = A::B->new(test => 1);
    
  5. or download this
    1. Compile require A;
    2. Compile my $test = A::B->new(test => 1); as "A::B"->new
    ...
    5. Compile sub B { ... }
    6. ...
    7. Execute my $test = A::B->new(test => 1);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-19 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found