in reply to Re^2: How to escape white space in command line arguments
in thread How to escape white space in command line arguments
@ARGV is a special Perl variable that contains the command line arguments. A similar thing exists in other languages. In 'C' you also get argc which is the count of the argv strings, e.g. int main(int argc, char **argv), but argc is redundant because argv is a null terminated array of pointers to strings and therefore calculating argc is trivial. Perl uses @ARGV for the purpose of passing command line args and the scalar value of @ARGV is what 'C' calls argc.
Nobody but the O/S should set @ARGV.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to escape white space in command line arguments
by JavaFan (Canon) on Apr 13, 2010 at 13:59 UTC | |
|
Re^4: How to escape white space in command line arguments
by Anonymous Monk on Apr 13, 2010 at 08:25 UTC | |
by Marshall (Canon) on Apr 13, 2010 at 08:57 UTC | |
by Anonymous Monk on Apr 13, 2010 at 09:38 UTC | |
by Marshall (Canon) on Apr 13, 2010 at 09:59 UTC | |
by Anonymous Monk on Apr 13, 2010 at 10:28 UTC |