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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.