in reply to Re: Parsing Windows CommandLine from Perl
in thread Parsing Windows CommandLine from Perl

That's a long way around the bush just to avoid using a backslash in the command.

c:\dev>type arg.pl #!/usr/bin/perl use 5.010; use warnings; use strict; my $i = 0; say $i++ . ":$_" for ($0, @ARGV);

The resulting output:

c:\dev>perl arg.pl "abc \" xyz" bob 0:arg.pl 1:abc " xyz 2:bob