Re: Initializing CGI Object from $r

2001-04-23 Thread darren chamberlain
Wade Burgett ([EMAIL PROTECTED]) said something to this effect on 04/21/2001: sub handler { my $r = shift; my $CGIQuery = new CGI($r); }; I think this will do what you are thining: sub handler { my $r = shift; my $CGIQuery = CGI-new($r-method qe 'POST' ? $r-content :

Re: Initializing CGI Object from $r

2001-04-22 Thread Mark Maunder
Hi, CGI accepts filehandles, hashref's, manually typed query string and another CGI object. (type 'perldoc CGI'). You don't want to pass it any of these because they're mainly used for debugging. Just create an instance of CGI without passing it any params. Since you're writing a handler I

Initializing CGI Object from $r

2001-04-21 Thread Wade Burgett
Can I initilize a new CGI object just by passing in a request from a handler? ie sub handler { my $r = shift; my $CGIQuery = new CGI($r); };