in reply to Re: command prompt help
in thread command prompt help
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:
If you want to examine each argument in turn, you can just do:$arguments = join(' ', @ARGV); # do something with $arguments
foreach $argument (@ARGV) { # Do something with $argument }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: command prompt help
by ivey (Beadle) on Jun 07, 2000 at 01:00 UTC | |
|
RE: RE: Re: command prompt help
by KM (Priest) on Jun 07, 2000 at 03:30 UTC |