Help for this page

Select Code to Download


  1. or download this
    package My::Class;
    use Scalar::Util qw( refaddr );
    ...
      if (@_) { $name{ refaddr $self } = shift }
      return $name{ refaddr $self };
    }
    
  2. or download this
    package My::Class;
    use Class::InsideOut qw( public register );
    ...
      my $class = shift;
      register( bless( {}, $class ) );
    }