| 1 | #!/usr/bin/perl | ||
| 2 | # $Id: Plugin.pm,v 1.17 2003/12/10 03:52:30 nothingmuch Exp $ | ||
| 3 | |||
| 4 | package Object::Meta::Plugin; # base class for a plugin | ||
| 5 | |||
| 6 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 4 | ▶ | use autouse Carp => qw(croak); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 4 | our $VERSION = "0.02_04"; | |
| 12 | |||
| 13 | 0 | ▶ | sub init { # defined. |
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 14 | 0 | my $self = shift; | |
| 15 | 0 | croak "init must be defined by sublclass"; | |
| 16 | } | ||
| 17 | |||
| 18 | 4 | 1; # Keep your mother happy. | |
| 19 | |||
| 20 | __END__ | ||