Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: a HTML::Form question.

by Sinister (Friar)
on Feb 28, 2002 at 19:22 UTC ( [id://148340]=note: print w/replies, xml ) Need Help??


in reply to a HTML::Form question.

You could try to write your own class which uses HTML::Form as a base class.
You'll need something like:
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";
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(...)'.

If a new version of HTML::Form ever comes out - nothing 'bad' happens...

Hope this any good.

Sinister greetings.
"With tying hashes you can do everything God and Larry have forbidden" -- Johan Vromans - YAPC::Europe 2001
perldoc -q $_

Replies are listed 'Best First'.
Re: Re: a HTML::Form question.
by Pug (Monk) on Feb 28, 2002 at 20:10 UTC
    Thanks that fixed the problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://148340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-26 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found