Re: PAR::Packer::VERSION

[email protected] (Roderich Schupp)
Newsgroups perl.par
Message-ID <CAC9r9zbFx19MCSvugdc2C8GnxB1thWzW8KMmdgKaWQx=cZ3rrw@mail.gmail.com>
On Thu, Jun 30, 2016 at 3:26 PM, Johan Vromans <[email protected]> wrote:

> For a binary that is created with pp, is it possible to know (show) the
> version of the packer? $PAR::VERSION is available, but
> $PAR::Packer::VERSION is not. That's understandable.
>

$PAR::Packer::VERSION is not available, since it's used for the packing,
but not when running the resulting executable.


> However, I think it would be helpful in case of problems to know what
> version of the Packer produced the binary.
>

Certainly doable. But a perl variable wouldn't be that useful: you would
have to add code in advance to your script to show it. And if the problem
is so severe that the executable won't run at all, you can't get this
information out of it. What about a static string in the executable that
you could grep for, e.g. "packed by PAR::Packer VERSION".

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.