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
In reply to Re: CGI Command Line
by barrachois
in thread CGI Command Line
by JoeJaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |