<rant> Why does everyone swear by CGI.pm? For many simple CGI scripts, it is
simply overkill. I use a simple little subroutine that creates a hash out of all the name/value pairs at it works fine.
</rant>
I think perhaps the author of the question was wondering how to access command line arguments, and was merely using the CGI example to illustrate what he was saying. If so, Perl stores command-line arguments in the @ARGV array.
If you want to simply treat all the arguments as one, you can just do:
$arguments = join(' ', @ARGV);
# do something with $arguments
If you want to examine each argument in turn, you can just do:
foreach $argument (@ARGV) {
# Do something with $argument
}
|