in reply to Function-oriented style CGI accessing form parameters

Update: Misunderstood the question, sorry! I'll leave this code here anyway, just for kicks.


Here's a simple example to get you started.
#!/usr/bin/perl # the usual suspects use warnings; use strict; # CPAN modules use CGI; # create objects my $cgi = CGI->new; # read in form data my %form_data = $cgi->Vars; # output print $form_data{'parameter_name_here'};
Have fun!

Replies are listed 'Best First'.
Re^2: Function-oriented style CGI accessing form parameters
by hmbscully (Scribe) on Aug 03, 2005 at 17:04 UTC
    Thanks, but isn't that in OO style? Maybe I'm really confused, but I was under the impression that OO used the -> while function-oriented (which I am trying to understand) does not.

    Aside: I do not use strict; in my code because no matter what I've tried, I can't get anything to run with that in my scripts on the server set up I have. My unix admins tell me something is wrong with the perl install, but they don't know how to fix it... But I'm soon to get a new web server (woohoo, no more netscape server) with fresh installs of everything (woohoo, no more perl 5.004) so hopefully that will get fixed.