Subject: | Par:Packer bugs ? |
Date: | Wed, 31 Oct 2007 19:31:29 +0100 |
To: | bug-par [...] rt.cpan.org |
From: | Sebastian <sebastian [...] expr42.net> |
Goodday,
Recently I started using Par::Packer and noticed a small bug in the
program it seems. I've got a script named 'netstat.pl' which calls the
binary 'netstat' within backticks and depends on the PATH enviroment to
figure out which one it needs (in most cases the one in /bin). this
script works fine. But when I make PAR binary from it with 'pp' and name
it 'netstat' it goes wrong. apearently Par::Packer add it's own cachedir
to the PATH.
I guess it's not a good idea to name your program like that what it
calls, but I can't always see what the modules call on programs or know
what is in the path at each system.
Now I wondered if it was possible to keep the original PATH for
executing the script internally?
If it't not possible could this be documented and in the manual?
I also noticed something else, I haven't figured out yet where this goes
wrong exactly, but apearently, the source filename needs to end on .pl.
This is nowhere really clear in the manpage and I'm not sure why this is
needed, but I'd atleast think it should be clearly documented.
(I can supply a patch to the pod if people would think it doesn't need
or can't be fixed).
Thanks,
Sebastian S