Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Need help understanding variable scope in modules

by japhy (Canon)
on Jul 11, 2001 at 22:53 UTC ( [id://95808]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Need help understanding variable scope in modules
in thread Need help understanding variable scope in modules

Inheritance.
package Person; sub eat { ... } sub drink { ... } package Alcoholic; @ISA = qw( Person ); sub drink { ... }
Here, an Alcoholic object has its own drink method, but it inherits the eat method from Person. Similarly, something that inherits from the class you've posted could have its own _accessible method.

japhy -- Perl and Regex Hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found