- or download this
package dog;
...
}
1;
- or download this
package dog::cocker;
use dog;
...
}
1;
- or download this
use dog::cocker;
my $sasha=new dog::cocker;
- or download this
package dog;
...
print "Woof!\n";
}
1;
- or download this
use dog;
...
$sasha -> bark();
- or download this
package dog::samoyed;
use dog;
...
1;
- or download this
.
.
...
.
.
.
- or download this
# after the "my $self" line we add:
%def_attrs=(
...
$self->{$key} = $def_attrs{$key} if not $self->{key};
}
- or download this
package dog::cattle_dog;
use dog;
...
}
1;
- or download this
package dog;
...
print "tail wagging\n";
}
1;
- or download this
use dog;
use Data::Dumper;
...
$moose->bark; $moose->wag_tail;
$cosette->bark; $cosette->wag_tail;
$frosty->bark; $frosty->wag_tail;
- or download this
$VAR1 = bless( {
'voice' => 'yarf',
...
tail over back
yarf
tail wagging