Yes. I've noticed most documentation in the Perl world tends to assume Unix shell quoting ... so I've gotten used to translating to Windows CMD quoting when running under Windows. It's got more complicated in recent years with Microsoft exhorting you to prefer PowerShell to CMD.
Bod, which command shell do you use on Windows: COMMAND.COM or CMD.EXE or PowerShell or something else? The single quotes should work with PowerShell (and Cygwin).
To illustrate the differences, I ran this trivial Perl program print-args.pl on Ubuntu bash, Windows CMD, and Windows PowerShell:
use strict; use warnings; for my $arg (@ARGV) { print "arg=:$arg:\n"; }
Ubuntu bash:
$ perl print-args.pl 'Hello Bod' arg=:Hello Bod:
Windows CMD:
C:\Bod> perl print-args.pl 'Hello Bod' arg=:'Hello: arg=:Bod':
Windows PowerShell:
PS C:\Bod> perl print-args.pl 'Hello Bod' arg=:Hello Bod:
See also: Comparison of command shells
Updated: added Cygwin reference
In reply to Re^2: LICENCE file (single vs double quotes)
by eyepopslikeamosquito
in thread LICENCE file
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |