- or download this
use strict;
use warnings;
...
}
print foo, "\n";
- or download this
bless $self, $class;
- or download this
my $object = bless $self, $class;
return $object;
- or download this
bless ($self,$class);
return $self;
- or download this
return bless ($self, $class);
- or download this
my ($self,$class)=@_;
- 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);