5 # Note: This program is no longer necessary because this capability is now
6 # built into perltidy, but the prograim is a good example of the use of
7 # prefilters and postfilters.
11 Hide sections of as script from perltidy which are between special comments,
16 anything between '#<<V' and '#>>V' is hidden from perltidy but seen by perl
20 This works by converting #<<V into =pod and #>>V into =cut before
21 processing, and then converting back after processing.
23 This was created for issue git #65.
27 my $arg_string = undef;
29 exit Perl::Tidy::perltidy(
33 s/^(#<<V\b.*)$/=pod $1/gm;
34 s/^(#>>V\b.*)$/=cut $1/gm;
39 s/^=pod (#<<V\b)/$1/gm;
40 s/^=cut (#>>V\b)/$1/gm;