rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
48 stars 13 forks source link

PAR::Filter::Bleach [rt.cpan.org #133999] #39

Closed rschupp closed 3 years ago

rschupp commented 3 years ago

Migrated from rt.cpan.org#133999 (status was 'open')

Requestors:

From bonaventura.ingenito@hvbg.hessen.de on 2021-01-06 14:13:16 :

Hallo,

ich have a perl-script with __DATA__ inside.
I compile it with pp -f Bleach ... to exe.
After starting exe it crashes.

Without -f Bleach it works fine.

What can I do?

Best reguards

Rino Ingenito

Hessisches Landesamt für
Bodenmanagement und Geoinformation
Geodatenbereitstellung
Schaperstraße 16
65195 Wiesbaden     
Telefon:  +49 (611) 535 5583 
E-Mail:   bonaventura.ingenito@hvbg.hessen.de   

From rschupp@cpan.org on 2021-01-06 22:25:55 :

On 2021-01-06 09:13:16, Bonaventura.Ingenito@hvbg.hessen.de wrote:
> ich have a perl-script with __DATA__ inside.
> I compile it with pp -f Bleach ... to exe.
> After starting exe it crashes.

Really? No error message?

> What can I do?

Don't use bleach on your colorful scripts :)
Seriously, you should have seen something like

readline() on unopened filehandle DATA at (eval 1) line 8.

Due to the way Bleach is implemented, __DATA__ doesn't work.

Cheers, Roderich
rschupp commented 3 years ago

Duplicate of #36

I've added a note to the POD of pp.pm