Hi,
I'm using Strawberry Perl 5.10.1.3 (Windows XP), PAR::Packager 1.007 and
PAR 1.002. I already posted the problem in
http://cpanforum.com/posts/12974 and by now I think I should report it
as a bug, because the executable generated by PAR::Packer behaves
differently from original script. The sample.pl is:
#!/usr/bin/perl
use 5.010;
print "argv= @ARGV, #args=",$#ARGV,"\n";
If I call the script
Show quoted text
>sample.pl *.txt
then I get (as expected)
Show quoted text>argv= *.txt, #args=0
But if I call the executable generated by PAR::Packer
Show quoted text>sample.exe *.txt
then I get:
Show quoted text>argv= 1.txt 2.txt 3.txt 4.txt, #args=3
So in contrary to the script, the wildcard is expanded (and therefor the
script doesn't work as expected under Windows). I think, that the
wildcard expansion may be an emulation of the behaviour of the shell in
Linux/Unix... so actually a good thing. But still: the .exe generated by
PAR::Packer behaves differently from the script.