If you use this class instead of CGI, and call header in the object oriented sense, it should accomplish what you want.package Some_CGI; use CGI; @ISA = qw(CGI); use strict; my $is_header_printed = 0; sub header { my $self = shift; return if $is_header_printed; $is_header_printed = 1; $self->SUPER::header(); } 1;
... my $form = Some_CGI->new(); ... print $form->header(); ...
In reply to Re: custom CGI die
by shemp
in thread custom CGI die
by fireartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |