lecture in color

Localizing globals

Caveat: separation of method and discipline

Localization of binding

Kinds of localization of binding

Packages

Why use a package?

Declarations (PP chapter 4)

my $var;

our $var;

local $var;

Shadowing

Scoping demonstration

Why scoping?

Basic 'rule of scope'

use strict

Simulating other kinds of declarations

Subroutines as constants

Prototypes

Example: emulating behavior of sort

Attributes

Value-based scoping

bless

Object polymorphism

Real meaning of polymorphism

Inheritance

Whoa there!

Simulating data inheritance

Summary of visibility operations

Guard clauses


lecture in color


downloaded on Mar-16-2010 12:08:08 PM,
was last modified on Dec-31-1969 07:00:00 PM.

All lecture note content is copyright 2003 by
Alva L. Couch, Computer Science, Tufts University
(couch at cs dot tufts dot edu)