in reply to Re: how to ignore regex in input to getopt::Long
in thread how to ignore regex in input to getopt::Long

Hi, thanks for replying.
However, I am trying to have it so that people do not have to escape anything on command line.. is this not possible due to shell interpretation before perl?
  • Comment on Re^2: how to ignore regex in input to getopt::Long

Replies are listed 'Best First'.
Re^3: how to ignore regex in input to getopt::Long
by toolic (Bishop) on Jun 28, 2010 at 13:49 UTC
    It depends on your OS/shell. In unix-type shells, ! must be escaped because of its special meaning as a command history/substitution character. I just verified this on 3 shells: sh, bash and tcsh.

    However, at a Windows DOS prompt, it is not necessary to escape the !.

Re^3: how to ignore regex in input to getopt::Long
by ikegami (Patriarch) on Jun 28, 2010 at 19:29 UTC
    Then don't use a character that has a special meaning for many popular shells. What about ":"?