--- Craig S Monroe <[EMAIL PROTECTED]> wrote:
> o.k.
> cgi.pm allows you to pull values from your form and push them directly into
> variables.
> For example:
>
> #! /usr/bin/perl -w
>
> use strict;
> use CGI qw(:standard);
Since you're instantiating a new CGI object, you don't need qw(:standard). That
imports the CGI
methods as functions. If you're using the OO interface, the import is superfluous.
> my $query;
> my $name;
>
> # Create a new object
> $query = new CGI(<STDIN>);
That works, but it will only work for the POST method. If you find a need to change
from a POST
to a GET, this code will break. The following will work for either method:
my $query = CGI->new;
Also, I think this discussion would be better handled on the CGI beginners list.
Cheers,
Curtis POe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]