Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 64485
Status: resolved
Priority: 0/
Queue: PAR-Packer

People
Owner: RSCHUPP [...] cpan.org
Requestors: DJIBEL [...] cpan.org
Cc:
AdminCc:

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



Subject: pp PodStrip module included
Dear, My configuration is ActivePerl perl, v5.10.1 built for MSWin32-x86-multi-thread Binary build 1008 [294165] provided by ActiveState http://www.ActiveState.com Built Dec 9 2010 06:00:35 OS : XP I have a question about POD in exe. I have this program : perlcritic.pl #!/usr/bin/perl use strict; use warnings; use Pod::Simple::Search; use Perl::Critic; my $search = Pod::Simple::Search->new; my $module = 'Perl::Critic::Policy::ErrorHandling::RequireCarping'; if ( my $file = $search->find($module) ) { print "$module POD found\n\t- $file\n"; } else { print "not $module POD found"; } If I run this program, I have this result : Perl::Critic::Policy::ErrorHandling::RequireCarping POD found - C:\Perl\site\lib\Perl\Critic\Policy\ErrorHandling\RequireCarping.pm but if I run test.exe I have not Perl::Critic::Policy::ErrorHandling::RequireCarping POD found I want to get the POD from my executable but, it is not working. I have understood that when we run pp -o test.exe perlcritic.pl PodStrip filter is applied by default and if I read the RequireCarping.pm in exe, the POD documentation in truncated. It is possible to tell to pp when I run pp -o test.exe perlcritic.pl to disabled PodStrip on Perl::Critic::* modules ? Thank you, Best Regards, djibel
Show quoted text
> It is possible to tell to pp when I run pp -o test.exe perlcritic.pl > to disabled PodStrip on Perl::Critic::* modules ?
Setting PAR_VERBATIM=1 in the environment will prevent pp from applying the PodStrip filter. This behaviour is documented, but unfortunately only in the pod of PAR.pm. I've commited a similar remark to the pod of pp.pm Cheers, Roderich
Le Mer 05 Jan 2011 14:13:20, RSCHUPP a écrit : Show quoted text
> > It is possible to tell to pp when I run pp -o test.exe perlcritic.pl > > to disabled PodStrip on Perl::Critic::* modules ?
> > Setting PAR_VERBATIM=1 in the environment will prevent pp > from applying the PodStrip filter. > > This behaviour is documented, but unfortunately only in the pod of PAR.pm. > I've commited a similar remark to the pod of pp.pm > > Cheers, Roderich
Thank you Roderich, it is work very well now. $ENV{PAR_VERBATIM} = 1; system("pp -o test.exe test.pl"); OR SET PAR_VERBATIM=1 && pp -o test.exe test.pl Best Regards, DJIBEL