[rt.cpan.org #117323] parl a.par not finding DLL that was added with -l

"Roderich Schupp via RT" <[email protected]>
Newsgroups gmane.comp.lang.perl.par
Message-ID <[email protected]>
Tue Sep 06 11:13:01 2016: Request 117323 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR-Packer
     Subject: parl a.par not finding DLL that was added with -l
   Broken in: 1.035
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=117323 >


Am 2016-09-05 18:30:37, BHALLISSY schrieb:
> I've tried setting $0, e.g. in the main.pl script:

$0 in a pp generated executable is set to the name of the executable -
so that a simple

   die "usage: $0 ...\n"

will come out right. But that's wrong for Pod::Usage, so pp patches
the packed copy of Pod/Usage.pm to use "$ENV{PAR_0} || $0" in place of "$0".
Hence you should use

   $ENV{PAR_0} = "$ENV{PAR_TEMP}/inc/script/$which";

to trick Pod::Usage into using the POD in the script being "do"ne.

Cheers, Roderich
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.