- or download this
# Build and require the subclass for this type:
my $class = __PACKAGE__ . "::" . $opts{type};
...
};
# Bless into the determined subclass for this type:
bless $self, $class;
- or download this
use strict;
use warnings;
...
$part->name(),
ref($part)
);
- or download this
package Widget;
...
}
1;
- or download this
package Widget::Part;
...
}
1;
- or download this
package Widget::Part::Cog;
...
}
1;