Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: alfred.seetoh [...] fedex.com
Cc:
AdminCc:

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



Subject: Something wrong with Bleach filter?
To: bug-par [...] rt.cpan.org
From: alfred.seetoh [...] fedex.com
Date: Wed, 3 Nov 2004 12:49:24 +0800
Hi, I'm trying to package a simple program that have a dependency on Time::HiRes module in Perl 5.8. My command is as follow: pp -c -F Bleach test.pl. The a.out file was created without any error. But when I run the file, it gives me the following error: Time/HiRes.pm did not return a true value at script/test.pl line 1. BEGIN failed--compilation aborted at script/test.pl line 1. This is just one of the example, I had other programs that got similar problem if I use the Bleach filter. If I didn't use the filter, then it works. So I believe there must be something wrong with the Bleach filter. Regards, Alfred
See "Trouble with PAR & Bleach filter ( http://perlmonks.org/?node_id=398995 ) Basically sub apply in Bleach.pm needs to be sub apply { my $ref = $_[1]; $$ref = unpack("b*", $$ref); $$ref =~ tr/01/ \t/; $$ref =~ s/(.{9})/$1\n/g; $$ref = q(local $_=<<'';y;\r\n;;d;$_=pack'b*',$_;$_=eval;$@&&die$@;$_;)."\n$$ref\n\n"; }