Did you check what your Perl script actually gets in @ARGV? The following will clarify to you what I suspect is the cause:
BEGIN { local $" = "] ["; print "Command line: [@ARGV]\n";
Most likely, your shell interprets the backslash (and other regex metacharacters) as a special character.... Of course, different shells handle the commandline differently, so the set of metacharacters may range from +/&;*"^% (Win32) to +/&!$\'"()[]{} (many *sh variants).
In reply to Re: Getopt, regexen, and newlines
by Corion
in thread Getopt, regexen, and newlines
by apotheon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |