Riviere Stéphane wrote:
> 
> Hi,
> 
> no problem :
> 
> this line is in the OpenCA::TRIStateCGI::newInput function
> (line 112 in the version 1.02 of the script)

The function actually calls the $type function of the CGI module as the
TRIStateCGI acts as an extention to that module.
 
> example of parameter (from "request" script of the Secure webserver) :
> 
> my $tristate        = new OpenCA::TRIStateCGI;
> 
> my %par1 = (   -regx=>'*',
>             -intype=>'hidden',
>             -name=>'operation',
>             -value=>'client-filled-form');
> 
> my $operation  = $tristate->newInput ( %par1 );
> 
> After the call we have $operation =
> <INPUT TYPE="hidden" NAME="operation" VALUE="client-filled-form">

Under Linux or Windows ???
 
> Apparently the " $ret = $self->$type(@_);  " line does all the job, no ?
> Is it a command from the original CGI script ?

Yes. The command called is one of the original CGI module.

> should I use something like that :
> 
> my $cgi = new CGI;
> $ret = $CGI->$type(@_);  ???

No, because when you use the 'new OpenCA::TRIStateCGI' command you are
using the 'new' function from the original CGI module... as I said before
this module extends CGI functionalities by adding a couple of functions
for TRI-State checking.

In your case the '$self->$type( @_ )' calls the CGI's 'hidden( @_ )' sub.
The error could depend on the CGI or PERL version used also...

-- 

C'you,

        Massimiliano Pala

--o-------------------------------------------------------------------------
Massimiliano Pala [OpenCA Project Manager]                [EMAIL PROTECTED]
                                                     [EMAIL PROTECTED]
http://www.openca.org                            Tel.:   +39 (0)59  270  094
http://openca.sourceforge.net                    Mobile: +39 (0)347 7222 365

S/MIME Cryptographic Signature

Reply via email to