Help for this page

Select Code to Download


  1. or download this
    01:  my $_init_ = sub {
    02:    my $self = shift;
    ...
    14:    $self->$_init_();
    15:    return $self;
    16:  }
    
  2. or download this
    sub new {
      my $class = shift;
    ...
    sub _init {
      # instance initialization
    }
    
  3. or download this
    07:    my $type = shift;
    08:    my $class = ref($type) || $type;
    
  4. or download this
    $employee{Sally} = Employee->new;
    $employee{Bob}   = $employee{Sally}->new;
    
  5. or download this
    $employee{Sally} = Employee->new;
    $employee{Bob}   = $employee{Sally}->clone;
    
  6. or download this
    sub accessor_to_column {
      my ($proto,$column) = @_;
    ...
      }
      return $found_column;
    }