- or download this
{
my $caller = caller ;
die unless $caller eq __PACKAGE__ ;
}
- or download this
package MyClass ;
...
{ some => 'attribute', goes => 'here' }
return bless \$objID,$class ;
}
- or download this
sub some : lvalue {
my $self = shift ;
...
return $Registry[$$self]{some} ;
}
- or download this
package MyClass ;
...
private 'scalar','priv' ;
protected 'array','prot' ;
public 'hash','pub' ;