Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 5708
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: Nobody in particular
Requestors: martin_hosken [...] sil.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.79
Fixed in: (no value)



Subject: parl xyz.par abc.pl doesn't work
When creating a multiple .pl par (i.e. pp -o xyz.par abc.pl def.pl ghi.pl) the various sub .pl programs are not available via: parl xyz.par abc.pl due to a bug in the main.pl that is designed for the case where someone has linked to xyz.par as abc. The first line of the multi-file version of main.pl as generated in pp should be: sub _main_pl_multi { return << '__MAIN__'; my $file = shift; as opposed to: my $file = $0; The problem is that this highlights and ambiguity in the command line spec for parl. Which should it be? Do we need a command line switch to pp to sort it out?
[guest - Thu Mar 18 04:46:52 2004]: Show quoted text
> When creating a multiple .pl par (i.e. pp -o xyz.par abc.pl def.pl > ghi.pl) the various sub .pl programs are not available via: > > parl xyz.par abc.pl > > due to a bug in the main.pl that is designed for the case where > someone has linked to xyz.par as abc.
Hi there, sorry for my belated reply. This has now been fixed in the snapshot version: http://p4.elixus.org/snap/PAR.tar.gz If you can test and confirm that it works you, it'd be appreciated. Note that you have to use: pp -p -o xyz.par def.pl ghi.pl instead of pp -o xyz.par def.pl ghi.pl since the latter builds an executable file, not a PAR file. I'll be very, very grateful if you can also provide a documentation patch to "pp" that explains this behaviour. :) Thanks1 /Autrijus/