in reply to Getopt, regexen, and newlines
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getopt, regexen, and newlines
by apotheon (Deacon) on Oct 12, 2005 at 18:38 UTC | |
by Roy Johnson (Monsignor) on Oct 12, 2005 at 18:58 UTC |