in reply to How to pass and retrieve command-line arguments specifying search conditions?
would read the first three arguments from the command-line into $arg1, $op, and $arg2. For more advanced command-line processing, you can use Getopt::Std or Getopt::Long.our($arg1,$op,$arg2) = @ARGV;
As duff said, certain characters will be interpreted by the shell and need to be escaped or avoided.
|
|---|