Mon Oct 04 07:09:55 2010: Request 61874 was acted upon.
Transaction: Ticket created by liandril
       Queue: PAR-Packer
     Subject: (No subject given)
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61874 >


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
>sample.pl *.txt
then I get (as expected)
>argv= *.txt, #args=0

But if I call the executable generated by PAR::Packer
>sample.exe *.txt
then I get:
>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.

Reply via email to