Posted on 2005-04-30 18:04:37-07 by rrwo
Is is safe to override the output method?

I am creating a subclass of Pod::PlainText for generating README files (see my post in the module-authors list).

My custom-parser needs to turn itself on/off to ignore certain parts. The only way to get this working seems to be to have an overriden output method that returns undef when the flag is set:

sub output { my $self = shift; return if $$self{README_SKIP}; $self->SUPER::output(@_); }

However, this method is not listed in the documentation as overridable. Is this due to an omission in the docs, or is there something unsafe about this that I'm not aware of?

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.