in reply to
CGI Command Line
Use the CGI.pm module and follow the directions
in its debugging documentation.
For example, if your script is in the file color.cgi
#!/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";
then from the command line
you can type
./color.cgi color=red
to see it run as it would from a URL like color.cgi?color=red
- barrachois