in reply to Re: Parameters incorrect interpreted when passed to perl-standalone
in thread Parameters incorrect interpreted when passed to perl-standalone

"I think the "*.zip" is definitely being expanded by the operating system before the perl program is called on it."

You're correct with the problem on the compiled version. perl -w param.pl *.zip just works fine.
  • Comment on Re^2: Parameters incorrect interpreted when passed to perl-standalone
  • Download Code

Replies are listed 'Best First'.
Re^3: Parameters incorrect interpreted when passed to perl-standalone
by afoken (Chancellor) on Mar 16, 2017 at 08:59 UTC

    Try Win32::Autoglob

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      First of all, the description itself says:

      "If you just add use Win32::Autoglob; in your program, this module will alter @ARGV by performing globbing. I.e., '*.txt' will be expanded to whatever *.txt matches, like ('whatever.bin', 'junk.txt', 'stuff.txt', 'thing.dat') -- or if there are no *.txt files, you'll just get an @ARGV of ('whatever.bin', 'thing.dat')."

      This behaviour is not what I'm looking for. I tested this module and as expected, the module performed globbing before. So I had the same unwanted behaviour on perl just like I got it when running the standalone executable.