in reply to command line args

Here's the entire argstest pgm, all 5 lines:,

use 5.012; use strict; use warnings; #use diagnostics; print "\n\$ARGV[0] = $ARGV[0]\n";

This works fine:

perl argstest.pl Xxx

assoc .pl says file extension not found. regedit says .pl default is pl_auto_file and then for that it says

"C:\Users\Thomas\perl\Perl64\bin\perl.exe" "%1"

I don't recall seeing

%*

at the end of that. Will check again.

The old machine runs Perl5.12. The new one Perl28.

Replies are listed 'Best First'.
Re^2: command line args
by Anonymous Monk on Jul 26, 2019 at 02:31 UTC
    help ftype tells you
    ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %1 %*