- or download this
Inside Object2:
sub setsomething {
my $self = shift;
$self->{_object1}->{mode} = 1;
}
- or download this
sub mode
{
...
$self->{mode} = $_[0] if (@_);
$self->{mode};
}
- or download this
$self->{_object1}->{mode} = 1;
- or download this
$self->{_object1}->mode(1);