- or download this
=pod
package Canine;
package Dog;
my Canine $spot : Watchful ;
- or download this
use attributes ();
attributes::->import(Canine => \$spot, "Watchful");
=cut
- or download this
use warnings;
use strict;
...
print "Woof!\n";
();
}
- or download this
package main;
...
my $izzie = ref $spot;
print $izzie? "$izzie Spot is @{[keys %$spot]}": "No Spot", $/;
- or download this
my Dog $rover;