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