[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]>
Wed Aug 31 03:05:22 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-08-30 20:37:21, BHALLISSY schrieb:

> We have 31 separate scripts bundled in one par. 

So users invoke them as

  parl some.par foo.pl
  parl some.par bar.pl
  ...

where foo.pl, bar.pl are packed in some.par?

> If we create a packed
> executable that includes them all, is there a way (other than copying
> the .exe file) to invoke specific scripts 

Pack a main script such as

  my $which = shift @ARGV;   # note: probably should do some sanitizing
  my $rc = do "$ENV{PAR_TEMP}/script/$which";
  die $@ if !defined $rc && $@;   # script not found, failed to compile etc
  exit(0);                   # in case script didn't call exit() itself

into some.exe, then users can invoke this as

  some.exe foo.pl
  some.exe bar.pl
  ...


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.