Next Twelve Talks in One 15

Subclassing

            sub preprocessor {
              my ($self, $pp) = @_;
              $self->{PREPROCESSOR} = $pp;
            }
            sub compile {
              my ($self, $code) = @_;
              if (defined $self->{PREPROCESSOR}) {
                $code = $self->{PREPROCESSOR}->($code);
              }
              return $self->SUPER::compile($code);
            }


More Details Copyright © 2003 M. J. Dominus