in reply to CGI Command Line
For example, if your script is in the file color.cgi
then from the command line you can type#!/usr/bin/perl -T use strict; use warnings; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/plain\n\n"; my $color=param('color'); print "Your chosen color is $color.\n";
./color.cgi color=redto see it run as it would from a URL like color.cgi?color=red
- barrachois
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI Command Line
by bhappy (Scribe) on Apr 13, 2004 at 12:08 UTC | |
by JoeJaz (Monk) on Apr 14, 2004 at 15:16 UTC | |
|
Re: Re: CGI Command Line
by JoeJaz (Monk) on Apr 12, 2004 at 21:26 UTC |