in reply to a HTML::Form question.
This way you can still be using all your code, you'll just have to 'use Invalid' instead of 'use HTML::Form' and do a 'Invalid->new(...)' instead of 'HTML::Form->new(...)'.package Invalid; use base qw(HTML::Form); use strict; # || loose(XP); sub new { my $class = ref($_[0]) || $_[0]; shift; my $self = $class->SUPER::new(@_); return(bless($self,$class)); } sub your_overwritten_routine { my $self = shift; ... and the rest of your code ... return $something; } "True value";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: a HTML::Form question.
by Pug (Monk) on Feb 28, 2002 at 20:10 UTC |