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

Re: How to use a 'Use'

by BaldPenguin (Friar)
on Jul 05, 2005 at 03:05 UTC ( [id://472370]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How to use a 'Use'

Using a package does just that, it uses it. However using base , uses the package and adds it to the @ISA so that it the packages are inherited.

From the documentation:
package Baz; use base qw(Foo Bar);
Is equal to
package Baz; BEGIN { require Foo; require Bar; push @ISA, qw(Foo Bar); }

Don
WHITEPAGES.COM | INC

Edit by castaway: Closed small tag in signature

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://472370]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.