Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    }
    
    print foo, "\n";
    
  2. or download this
      bless $self, $class;
    
  3. or download this
      my $object = bless $self, $class;
      return $object;
    
  4. or download this
        bless ($self,$class);
        return $self;
    
  5. or download this
        return bless ($self, $class);
    
  6. or download this
        my ($self,$class)=@_;
    
  7. or download this
        my ($class, $self) = @_;
        # and add a check that we're not copying
        # for good measure
        die ("This isn't a copy constructor") if (ref $class);