in reply to LICENCE file

The documentation is wrong - at least for Strawberry Perl on Windows. The documentation shows single quotes for the --holder attribute. If single quotes are used, just the firstname is shown in the LICENCE file. Using double quotes solves this problem: --holder "Joe Bloggs"
This is a general problem with command-line arguments, there's regular discussions, e.g. related to perl -e oneliners. Unix/Linux single quote, Windows native double quote (probably same with ActivePerl, while Cygwin (and MinGW) Shell is a bash which understands quotes the same as Unix/Linux.

Replies are listed 'Best First'.
Re^2: LICENCE file (single vs double quotes)
by eyepopslikeamosquito (Archbishop) on Oct 16, 2023 at 09:55 UTC

    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

      G'day 👁️🍾👍🦟,

      Just to complete your examples; Cygwin works the same as Ubuntu (probably any flavour of Linux) and PowerShell.

      $ perl -v | head -2 | tail -1 This is perl 5, version 38, subversion 0 (v5.38.0) built for cygwin-th +read-multi $ alias perle alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E +' $ perle 'say "arg=:$_:" for @ARGV' 'Hello Bod' arg=:Hello Bod: $ cat print-args.pl use strict; use warnings; for my $arg (@ARGV) { print "arg=:$arg:\n"; } $ perl print-args.pl 'Hello Bod' arg=:Hello Bod:

      Fun update:

      In the greeting, I originally used "👁🍾🦟" (for eyepopslikeamosquito) which (I believe) you first used in "Re^8: Extracting DNC issues (LOLFOFLRATGSEAUSU)".

      As those elements really only give "eyepopsamosquito", I've taken the liberty of adding 👍🏻 for "like"; I also upgraded the eye from its text form (👁) to its emoji form (👁️).
      This gives: 👁️🍾👍🏻🦟

      I'm fairly certain hippo was the first to use just emoji for his signature; i.e. 🦛. Perhaps you, not currently having a signature, would like to be the second, with 👁️🍾👍🏻🦟.

      Fun update the Second: Changed 👁️🍾👍🏻🦟 to 👁️🍾👍🦟 in greeting as per stated preferences.

      — Ken

        I'm fairly certain hippo was the first to use just emoji for his signature ... Perhaps you, not currently having a signature, would like to be the second

        How could I resist a challenge like that? :)

        I've just edited my Settings -> Signature Settings for the first time, after 20+ years at the Monastery. I used your suggestion, minus the skin tone on the thumbs up, because the default yellow thumbs up emoji looks clearer to my eyes. Tips on using Perl Monks Signatures welcome.

        👁️🍾👍🦟
      which command shell do you use on Windows

      Mostly cmd...

Re^2: LICENCE file
by Bod (Parson) on Oct 16, 2023 at 14:12 UTC
    This is a general problem with command-line arguments, there's regular discussions, e.g. related to perl -e oneliners

    Oh! How strange that I didn't connect this to the issues I have with quoting one-liners...