Help for this page

Select Code to Download


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